FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » getimagesize now throwing an error after a server update
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
getimagesize now throwing an error after a server update [message #172817] Thu, 03 March 2011 23:37 Go to previous message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma:
Member
I have a PHP script that checks for an image using getimagesize(), and
if there are no errors it prints it. Like so:

if ($image)
list($org_width, $org_height, $type, $attr) = getimagesize("http://
www.EXAMPLE.com/$image");

if (!$image || !$org_width) {
$image = "noimage.gif";
$org_width = "252";
$org_height = "35";
}

This has worked fine until last night, when I assume my server did an
update. Now, I'm getting this:

***
Warning: getimagesize() [function.getimagesize]:
php_network_getaddresses: getaddrinfo failed: Temporary failure in
name resolution in /home/USERID/public_html/view.php on line 349

Warning: getimagesize(http://www.EXAMPLE.com/234996.jpg)
[function.getimagesize]: failed to open stream:
php_network_getaddresses: getaddrinfo failed: Temporary failure in
name resolution in /home/USERID/public_html/view.php on line 349
***

Line 349 is the getimagesize() that I posted earlier. I should also
mention that this happens on ALL images loading, not just the
234966.jpg in this error. And, I've checked that 234966.jpg does exist
and loads correctly. It actually loaded fine yesterday.

I'm having other Perl related errors, too, so I'm positive that this
is a problem with a server update. The server is semi-managed, and the
company that manages it can't find the source of the problem, though,
and neither can I.

Does this information give you guys any ideas on where I might look?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: copy data from one table to another table
Next Topic: New updates about technology
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 04:01:19 GMT 2024

Total time taken to generate the page: 0.05317 seconds