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
Re: getimagesize now throwing an error after a server update [message #172819 is a reply to message #172817] Fri, 04 March 2011 01:02 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/3/2011 6:37 PM, jwcarlton wrote:
> 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?

All PHP does is call the systems getaddrinfo() function. They need to
figure out why the system's function is failing.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Tue Nov 26 11:48:57 GMT 2024

Total time taken to generate the page: 0.04254 seconds