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 #172824 is a reply to message #172819] Fri, 04 March 2011 03:44 Go to previous messageGo to previous message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma:
Member
On Mar 3, 8:02 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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.
> jstuck...@attglobal.net
> ==================

I believe (he said with his fingers crossed) that the error is
resolved now. Turns out that it wasn't even on my end; it was the
management company's nameservers.
[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: Fri Sep 20 14:28:54 GMT 2024

Total time taken to generate the page: 0.04112 seconds