[PHP] disable_functions on virtual hosts?

2002-01-18 Thread Ing. Daniel Manrique
I'd like to disable certain functions for a particular virtual host, and leave them as is for all the rest. The usual way to do this would be to include something like: php_admin_value disable_functions system,exec in the virtual host's configuration block. However, this doesn't work, and s

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Ing. Daniel Manrique
> Can anyone advise or direct me to the documentation that references how to > send a user to a URL if an 'if' statement is satisfied? Assuming you hadn't sent any output before: if ($condition){ header("Location: http://wherever.com";); exit; } -- PHP General Mailing List (ht

Re: [PHP] Opening more than one database at a time?

2002-01-20 Thread Ing. Daniel Manrique
It;'s entirely possible. Most database-related functions can take an optional link identifier parameter. You didn't use it, and in that case, database operations default to the last opened database connection. You can however do something like: $dblink1=mysql_connect($server1,$user1,$password1

Re: [PHP] Best way to get the remote IP address?

2002-01-21 Thread Ing. Daniel Manrique
> I can't seem to find any references to HTTP_X_FORWARDED_FOR in the PDF PHP > documentation from January 2001, so you should probably best stick with > either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use > $REMOTE_ADDR in functions make sure you do a global on it first) - I