Click to See Complete Forum and Search --> : $REMOTE_HOST error ..??


Anon
06-30-2001, 01:45 PM
hello, I've just installed PHP on Apache.. on Win2k Server..

When I access a php page i get several weird errors...

For exemple : when i do :

<? echo "$REMOTE_HOST"; ?> .. Then i get this error : Warning: Undefined variable: REMOTE_HOST in I:\Apache\htdocs\lanfest\users\uo_hide.php on line 68


And with phpmyadmin, i get this error now ... :
Warning: mysql_db_query is deprecated; use mysql_select_db() and mysql_query() instead in I:\Apache\htdocs\lanfest\admin\phpmyadmin\lib.inc.php on line 506

Ehm.. What is the solution ? Have i forget to install something ?

Anon
06-30-2001, 02:12 PM
dfsfds

ame12
07-01-2001, 01:27 PM
Not sure whether this is your case but often times $REMOTE_HOST isn't set because the client IP making the request can't be reverse mapped to a hostname. If that's the case, perhaps $REMOTE_HOST isn't set for you.

Dave


===========================================
http://badblue.com/helpphp.htm
Free small footprint web server for Windows
PHP, file-sharing, Access/Excel transcoding
===========================================

Anon
07-01-2001, 01:47 PM
what can you do about it ?

hm... This occured when i reinstalled apache and php on win2k.. before it worked, then i saw the names of each pc ..

But now i get that warning ... Is it a setting in php.ini or in httpd.confg or ..?

Thx

Anon
07-03-2001, 10:37 AM
$REMOTE_HOST:

Try creating a file called phpinfo.php. The file should contain just the following:

<?php phpinfo() ?>

This should bring up a full page of information about PHP, including environment variables. It's a good test to see if PHP is set up correctly.

As for PhpMyAdmin, what version are you using? Make sure you have the latest version (2.1).