Re: Unknown vars and constants
| From: | Ian Pawson | Date: | Fri, 11 May 2001 18:51:07 +0000 |
| Subject: | Re: Unknown vars and constants | ||
| References: | 1 2 3 4 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-3126@lists.php.net to get a copy of this message | ||
Well I now feel a bit stupid!! It dawned on me that these were warning
messages and NOT errors. I checked in the ini file and found that the
default setting is to show ALL errors and warnings. Re setting this to just
critical errors cured the problem and everything is now working properly.
Thank you for your advice.
--
Ian Pawson
""Johannes Janson"" <johannes.janson@gmx.de> wrote in message
news:9dgoeq$goq$1@toye.p.sourceforge.net...
> Hi,
>
> > session_register("EasyUSER"); $EasyUSER=$login[username];
> > session_register("EasyPASS");$EasyPASS=$login[password];
> > session_register("EasySERVER");$EasySERVER=$login[db_server];
> > session_register("EasyDB");$EasyDB=$login[db_name];
>
> I assume these are the lines which caused the error (counted just
roughly).
> Assign the value to the vars first then register the session.
> This is a question of taste but isn't it eayier to register just one
session
> and put all the values into this session.
>
> session_register("SESSION");
> $SESSION["EasyUSER"]=$login["username"];
> ....
>
> hope it helps (and works... ;-))
>
> johannes
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>