Click to See Complete Forum and Search --> : 4.0.6 and environment variables


altaergo
07-25-2001, 10:54 AM
I'm building a new server and I just finished installing PHP and the works ;)

Every thing is working but now my variables in the urls aren't being set. I saw in the php.ini the line
safe_mode_allowed_env_vars = PHP_

that appears to be my problem ( I run safe mode off) but making it blank didn't work and commenting the line out didn't work.

To make sure I'm doing the right thing here's my URL:
http://192.168.5.19/index.php?id=2

<? echo "<h1>ID=$id</h1>"; ?>
//prints ID=

Did I miss something in the compile or is there something else I need to do to the ini?

altaergo
07-25-2001, 10:59 AM
I found my problem...

register_globals = no ; should have been yes


why did I have this problem? because I used php-optimized.ini instead of php-dist.ini

How embarassing, at least I found it before I got a RTFM ;)