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
Switch to threaded view of this topic 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 next message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma: 0
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?
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 next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
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
==================
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 next message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma: 0
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.
Re: getimagesize now throwing an error after a server update [message #172826 is a reply to message #172824] Fri, 04 March 2011 04:26 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
jwcarlton wrote:
> 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.

Yes.

"php_network_getaddresses: getaddrinfo failed: Temporary failure in
name resolution"

is fairly explicit: The servers DNS resolver was for whatever reason borked.
  Switch to threaded view of this topic Create a new topic Submit Reply
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 12:35:41 GMT 2024

Total time taken to generate the page: 0.02849 seconds