unserialize(): Error at offset 0 of 555 bytes
Posted 05 May 2006 - 02:27 PM
$request = "http://api.local.yah...SC&output=php";
$response = @file_get_contents($request);
$phpobj = unserialize($response);
The code worked yesterday, and all of a sudden I am getting unseialize errors. Please Help!
You can see what I am tlaking about here... [a href=\"http://northviewhigh.com/test.php\" target=\"_blank\"]http://northviewhigh.com/test.php[/a]
Posted 05 May 2006 - 02:37 PM
Remove the error suppression (@ symbol) and see if the file_get_contents() part is working.
Thanks, but that part does work, I even printed out the contents of $response and it is correct. Any other ideas?
I;m using the code directly supplied from yahoo, no idea why its not working!
[a href=\"http://developer.yahoo.com/common/phpserial.html\" target=\"_blank\"]http://developer.yahoo.com/common/phpserial.html[/a]
Posted 05 May 2006 - 02:45 PM
Has anything changed on the server in the past day?
I do not believe so, It is possible however. Its a managed shared hosting account that I rent from hostgator.com
Posted 05 May 2006 - 02:47 PM
I'd suggest checking with them. The code is too simple to be anything else if you say the response is being returned correctly.
K thanks, I'll email their tech support, thanks for the help, let me know if oyu come up with any other ideas.
Posted 05 May 2006 - 03:05 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users