Web Hosting Talk







View Full Version : phpinfo showing something that isn't supposed to be there


tidalx
10-29-2004, 01:52 AM
When I look at my phpinfo.php for all of my sites it shows

PWD /home/httpd/vhosts/littlesurprises.com

_ENV["PWD"] /home/httpd/vhosts/littlesurprises.com

How do I change it back to what its supoosed to be.
Those 2 were not supposed to be there and its driving me nuts, I don't
know how it got there but it should be that and I am not sure whether
its affecting anything else. Can you tell me how to change it back or
how it got there. Would installing Zend have affected that? What is
Envrionment Variable PWD anyway !!!

Burhan
10-29-2004, 06:47 AM
PWD = Present Working Directory

This setting will not affect other scripts.

Read this page in the php manual (http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment) for more information

luki
10-30-2004, 02:56 AM
The PWD is usually the directory from where the main apache process was started... mine says "/tmp" because that is where I was when I last restarted apache.

I don't think apache or PHP updates this environment variable for each virtual host, so all would see the same.

tidalx
10-30-2004, 03:12 AM
thank you very much i restart apache and everything went back