Re: [PHP-LANG] Condition for link not found
[email protected] (Joey Smith) Wed, 19 Jun 2002 13:18:36 -0600
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
http://www.php.net/fopen
$f = fopen("http://www.ibm.com", "r") or ...;
On Wed, Jun 19, 2002 at 02:28:15PM -0400, JM wrote:
> I'm a beginner at PHP but couldn't find this in the documentation.
>
> Can I construct a php condition that can check if a url exists?
>
> Something like this:
>
> if www.ibm.com is found
> then href=www.ibm.com
> else href=www.mysite.com/notfound.html
>
>
>
>
>
> --
> PHP Language Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php