You are here: Error trapping getaddrinfo - File not found v. Temporary failure in name resolution? « PHP Programming Language « IT news, forums, messages
Error trapping getaddrinfo - File not found v. Temporary failure in name resolution?

Posted by Kronalias on 01/13/07 18:22

Hi - could a guru please help?

I'm trying to trap errors when I try to load a url into an array. I can
trap all errors by using this code:

if ( @file($url) == false ){
got a problem;
}

.... but then I don't know whether the problem is that the url file
doesn't exist, or whether it's just a temporary failure in name
resolution.

1. Is there a way to find out what the problem is?

2. I apologise for this question, and my only defence is that I'm a
newbie! Could someone please explain what the '@' in my code above
does? I've been rtfming and googling until I'm blue in the face, but I
can't figure it out...

Thanks in advance for not yelling at me...

Regards, Kronalias

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация