Re: [PHP] Do not want Undefined variable message

2004-03-07 Thread Michal Migurski
>But when i run the testinclude program I always get "Undefined variable
>errro on very first line. I know it is because vars are not defined yet,
>but i remember last time those warnings never used to come. What setting
>is needed in php.ini file ?

Check the manual for "error reporting."

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Do not want Undefined variable message

2004-03-07 Thread Manisha Sathe
I have following code

testinclude.php
<%
echo "A $color $fruit"; // A
include 'vars.php';
echo "A $color $fruit"; // A green apple
%>

vars.php
<%
$color = "green";
$fruit = "Apple";
%>

But when i run the testinclude program I always get "Undefined variable
errro on very first line. I know it is because vars are not defined yet, but
i remember last time those warnings never used to come. What setting is
needed in php.ini file ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php