Error getimagesize(): php_network_getaddresses:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wizzard81
Forum Commoner
Posts: 66
Joined: Wed Jan 15, 2003 6:05 am
Location: Belgium
Contact:

Error getimagesize(): php_network_getaddresses:

Post by wizzard81 »

Hello,

I'm having an error and don't know what it is:

Warning: getimagesize(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/choeve/domains/canadahoeve.be/public_html/cmsadmin/album_fotostoevoegen.php on line 50

Warning: getimagesize(/images/fotogalerij/1s.jpg): failed to open stream: No such file or directory in /home/choeve/domains/canadahoeve.be/public_html/cmsadmin/album_fotostoevoegen.php on line 50

I made a little image gallery script and i have this problem. A friend of me tried on his host and it works.

Can someone helps me?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it thinks you are trying to open a remote file, it appears.

/images/whatever is a root level folder, and likely doesn't exist. I would guess you are trying to access a document root level folder, in which case you should use $_SERVER['DOCUMENT_ROOT'] or relative mapping to the location..
Post Reply