Now, I get error messages like this at the top of these pages:
Notice: Undefined index: email in /usr/local/www/data/appdir/blocks/login_block.php on line 29
Notice: Undefined index: password in /usr/local/www/data/appdir/blocks/login_block.php on line 30
I saw a few posts about setting "register_long_arrays" on in php.ini, but that change didn't help. This file is included in many files from many different directories in the program. I even tried just hard coding the path, but then get these errors on pages that use functions like
file_get_contents($HOMEPATH."theme/login.htm");
(I had hard coded the HOMEPATH variable and still get these errors)
Now, I get error messages like this at the top of these pages:>
Notice: Undefined index: email in /usr/local/www/data/appdir/blocks/login_block.php on line 29>
Notice: Undefined index: password in /usr/local/www/data/appdir/blocks/login_block.php on line 30
There's nothing wrong with setting $HOMEPATH above in PHP 5. That's perfectly legal and should work fine. Something else is the cause of your problem.
..chris
--------------------------------------------------------------------- To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org
hmm... I just built this on a PHP 4 server and, today, copied the files over to the other server with PHP 5. I don't get those errors on the 4 server. The rest of the page displays fine, I just get those errors at the top. It's very bizarre,
Jenifer
----- Original Message ----- From: "Jenifer" <jenifer-+GwvjBt1dvcswetKESUqMA@public.gmane.org> To: <talk-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org> Sent: Sunday, March 05, 2006 8:01 PM Subject: [tcphp] PHP5 and $_SERVER['DOCUMENT_ROOT']
Well, I've found my first broken program when PHP 5 is installed. The program sets a path variable like this:
Now, I get error messages like this at the top of these pages:
Notice: Undefined index: email in /usr/local/www/data/appdir/blocks/login_block.php on line 29
Notice: Undefined index: password in /usr/local/www/data/appdir/blocks/login_block.php on line 30
I saw a few posts about setting "register_long_arrays" on in php.ini, but that change didn't help. This file is included in many files from many different directories in the program. I even tried just hard coding the path, but then get these errors on pages that use functions like
file_get_contents($HOMEPATH."theme/login.htm");
(I had hard coded the HOMEPATH variable and still get these errors)
argh. Anyone have any ideas?
Jenifer
--------------------------------------------------------------------- To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org
Oops, just realized that my changes to php.ini weren't being saved. heh. I'll contact my server guy and have him give me permissions and see if setting the register_long_arrays helps or not.
Jenifer
----- Original Message ----- From: "Jenifer" <jenifer-+GwvjBt1dvcswetKESUqMA@public.gmane.org> To: <talk-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org> Sent: Sunday, March 05, 2006 9:07 PM Subject: Re: [tcphp] PHP5 and $_SERVER['DOCUMENT_ROOT']
hmm... I just built this on a PHP 4 server and, today, copied the files > over to the other server with PHP 5. I don't get those errors on the 4 > server. The rest of the page displays fine, I just get those errors at the > top. It's very bizarre,>
Jenifer>
----- Original Message ----- > From: "Jenifer" <jenifer-+GwvjBt1dvcswetKESUqMA@public.gmane.org>> To: <talk-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org>> Sent: Sunday, March 05, 2006 8:01 PM> Subject: [tcphp] PHP5 and $_SERVER['DOCUMENT_ROOT']>
Well, I've found my first broken program when PHP 5 is installed. The > program sets a path variable like this:>
Now, I get error messages like this at the top of these pages:>
Notice: Undefined index: email in > /usr/local/www/data/appdir/blocks/login_block.php on line 29>
Notice: Undefined index: password in > /usr/local/www/data/appdir/blocks/login_block.php on line 30>
I saw a few posts about setting "register_long_arrays" on in php.ini, but > that change didn't help. This file is included in many files from many > different directories in the program. I even tried just hard coding the > path, but then get these errors on pages that use functions like>
(I had hard coded the HOMEPATH variable and still get these errors)>
argh. Anyone have any ideas?>
Jenifer>
---------------------------------------------------------------------> To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org>
The tcphp.org mailing list is sponsored by pajunas interactive, inc.>
--------------------------------------------------------------------- To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@public.gmane.org
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .