Pre-defined vars not working
| From: | c0p0n | Date: | Fri, 08 Feb 2002 07:05:13 +0000 |
| Subject: | Pre-defined vars not working | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-5979@lists.php.net to get a copy of this message | ||
The thing is that I reinstalled win2k, so I did with apache, mysql, php
4.1.1 the same.
I installed php (U know, editing php.ini-recommended, copying files
everywere, etc), and tested it with some old scripts I have. Well, the
problem is when I tried to exec my home page. It has a basic IP recognition
check, for me (loopback and 192.168.1.1) and some friends, that always
worked. this time not, it showed me the message for unknown users that I
have predefined if the user IP is not on the database.
Then I wrote a small script, this one:
<?
echo "<br>Nombre del servidor: <b> $SERVER_NAME </b>";
echo "<br>Versión de CGI: <b> $GATEWAY_INTERFACE </b>";
echo "<br>Software del server: <b> $SERVER_SOFTWARE </b>";
echo "<br>URL referida: <b> $HTTP_REFERER </b>";
echo "<br>IP del cliente: <b> $REMOTE_ADDR </b>";
?>
with lots of predefined vars. none of them showed. Some other basic scripts
I wrote worked like a charm. So I began the uninstallation. First I deleted
php.ini from c:\winnt and c:\php and... well, the not working scripts became
alive and began to work.
So it´s a misconfiguration of php.ini, and without it it is using default
settings. What should I look for?
PHP 4.1.1, Apache 2.0.28 (correctly configured), win2ksp2, blah, blah, blah
Thanx in advance...