I got two php pages:
**client.php** and **server.php**

**server.php** is on my web server and what it does is open my amazon product page and get price data and serialize it and return it to **client.php**.

Now the problem I have is that **server.php** is getting the data, but when I return it and do `echo` after using `unserialize()`, it shows nothing. But if I do `echo` in **server.php**, it shows me all the data. 

Why is this happening? Can anyone help me please? 

This the code I have used:

**client.php**

```
$url = "http://www.myurl.com/iec/Server.php?asin=$asin&platform=$platform_variant";
$azn_data = file_get_contents($url);
$azn_data = unserialize($azn_data);
echo "\nReturned Data = $azn_data\n";

```

**server.php**

```
if(isset($_GET["asin"]))
     {
         $asin = $_GET["asin"];
         $platform = $_GET["platform"];
         echo "\nASIN = $asin\nPlatform = $platform";
         //Below line gets all serialize price data for my product
         $serialized_data = amazon_data_chooser($asin, $platform);

         return($serialized_data);
     }
     else
     {
         echo "Warning: No Data Found!";
     }

```