[PHP-DEV] Using document root as open basedir

2005-08-10 Thread Alexander Windbichler
Hello, I have one question concerning the "_SERVER" variables that we can find in the output of phpinfo(). For example: _SERVER["DOCUMENT_ROOT"] /var/www/user1 Is it possible to set this DOCUMENT_ROOT as open_basedir? This would be very comfortable, because I do not have to set

[PHP-DEV] Re: vhost in mail

2004-11-13 Thread Alexander Windbichler
Hello, sorry for the late reply. I tried to patch php like: cat patch | patch -p1 then I filed in the patch manually, but it will not work. Error: debian:/usr/src/php-5.0.2# cat b | patch -p1 can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text lea

[PHP-DEV] vhost in mail

2004-11-01 Thread Alexander Windbichler
Hello, in the phpinfo() I can find (apache2handler) the entry: "Hostname:Port", which displays the vhost you are running the script from. In [phpsources]/sapi/apache2handler/php_functions.c I found the source. Now I want to display the vhost in every mail, which is sent by php. I know that the sou