supressing include warnings....
| From: | Ryan A | Date: | Wed, 07 Jan 2004 02:17:11 +0000 |
| Subject: | supressing include warnings.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173934@lists.php.net to get a copy of this message | ||
Hi again,
I got it working so that I can include a remote file from the clients
machine.
I am doing it like this:
$test_once=0;
$allow_url_fop = (int) ini_get('allow_url_fopen');
if($test_once==0)
{
if($allow_url_fop == 1)
{@include("http://www.site.com/product/check.php?ver=2&update=0");}
else{}
$test_once=1;
One problem, if something goes wrong instead of doing nothing its displaying
warnings....even though I have put a @ in front trying to suppress them.....
Then I even tried to put "error_reporting(E_ALL ^ E_WARNING);" just above
"$test_once=0;"....but then I got:
Fatal error: Call to undefined function: phperror_reporting() in /i.php on
line 66
Any ideas?
Thanks,
-Ryan