Re: Test links?
| From: | Jason Wong | Date: | Sun, 01 Dec 2002 10:30:06 +0000 |
| Subject: | Re: Test links? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126590@lists.php.net to get a copy of this message | ||
On Sunday 01 December 2002 15:33, Hugh Danaher wrote:
> Not sure how to supress the warning message that PHP automatically does
> when you haven't got a valid URL though.
Error reporting options can be set in php.ini or by using ini_set().
> should be able to surpress errors by adding an * before the result variable
>
> *$fp = fopen($linkdata['linkurl'],"r");
I think you mean '@':
$fp = @fopen($linkdata['linkurl'],"r");
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Blessed is he who expects no gratitude, for he shall not be disappointed.
-- W.C. Bennett
*/