Mr. Ericksen:

That looks like there are probably statements in the code where the variable
is used without being set first:

if( $variable == 'blah' )  ... but $variable hasn't been set...

This is ok in php, as long as the code can handle the variable being blank
...  you can get rid of the warnings by editing your php.ini file to reflect
as follows:

find the section commented "Error Reporting", comment out the
error_reporting = E_ALL; and enable the error_reporting = E_ALL & ~E_NOTICE
... so that it looks as follows:

error_reporting = E_ALL & ~E_NOTICE                                             ; show 
all errors, except for
notices
; error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR        ; show only errors
;error_reporting        = E_ALL; display all errors, warnings and notices

hope that is what you are looking for!

Michael


-----Original Message-----
From: Wayne B. Ericksen, P.E.
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 12:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Warning: Undefined variable:


The following is the basic outline of the errors I keep getting whenever I
try to run php scripts that I have downloaded:

Error -

Warning: Undefined variable:  variablename in \path in line xx

where variablename is many different variables.  I get many of these
undefined variable warnings.

I am running Apache 1.3.14, PHP 4.0.4pl1 and mySQL 3.23.22 beta on NT 4.0
sp5.

I have already made in my php.ini  include_path = "."    .....and it didn't
fix the problem.

Any advise or help would be most helpful.  I have searched this site and
faqts.com and have not found the solution.  Thanks.

Wayne


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to