Re: "Warning: Undefined variable" when used locally, but fine on remote server

From: Date: Mon, 24 Sep 2001 20:04:44 +0000
Subject: Re: "Warning: Undefined variable" when used locally, but fine on remote server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68592@lists.php.net to get a copy of this message
This has to do with error_reporting level setting set in php.ini echo $iamnotset; when E_NOTICE level is on, that will produce a Warning. Otherwise, it will not. I posted something similiar recently, see it here: http://marc.theaimsgroup.com/?l=php-general&m=100083224311516 On uklinux, either "fix" the code (yeah!) or use the error_reporting() function to suppress the warnings. Strange that a free host would have it on, actually, it's kinda cool :) regards, Philip Olson On Mon, 24 Sep 2001, Justin Colson wrote: > I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions > at > http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming > on > a Win98 machine which I will later use as an intranet server (NT workstation > refuses to detect NT server, and the machine is too slow for Win2k). When I > run scripts on this instalation that work fine on my free webspace at > uklinux.net, they return "Warning: Undefined variable: sub" at every > occurance of my menu system which uses sub as it its main vairable, if i > specify the variable in the URL that partiular page will work, but only of > the links > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#68592) next »