Re: HTTP ERRORS Boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rodrigo de Oliveira Costa schrieb:
Guys is there a way that I can call the func file("www.url.com") and
get a result true if there is a page and false if the page doesnt
exists (error 404)? the thing is I'm trying to retrieve a page but I
cant be sure that it exists so I need my script to try to access it
and if it cant access it then he should write something else.

Thanks,
Rodrigo
Read the comments of file, fopen, filegetcontents.

There might be a function already written i think i saw one there giving you the error.

Best way to handle would be to go over sockets and catch the headerinformation.
since 200 is OK and 404 would be GONE and so on.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux