Re: [PHP-LANG] Condition for link not found
[email protected] (Hartmut Holzgraefe) Fri, 21 Jun 2002 09:31:37 +0200
| Newsgroups | php.lang |
|---|---|
| Organization | Six offene Systeme GmbH |
| Message-ID | <[email protected]> |
Joey Smith wrote:
> It depends on your needs. fread() or fgets() are probably the easiest way
> to do it.
>
> http://www.php.net/fread
> http://www.php.net/fgets
if you do not care about relative links and image locations within
the page:
fpassthru($fp); # http://php.net/fpassthru
but more likely you need to
fclose($fp);
header("Location: $url");
exit;
PS: beware, fopen() is not good at handling timeout conditions
PPS: please move the discussion to the php-general list
php-lang was meant for discussing language specification
--
Hartmut Holzgraefe [email protected] http://www.six.de/ +49-711-99091-77