Re: relative path and include\require

From: Date: Sun, 29 Oct 2000 17:35:51 +0000
Subject: Re: relative path and include\require
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22558@lists.php.net to get a copy of this message
Hi Moshe, I don't know if I understood your question well or not, anyway if you want to include a php file, it's preffered to including it this way: include ('../somedir/somefile'); // relative inclusion rather than: include ('/home/httpd/html/somedir/somefile.php3'); // absolute inclusion Don't use full path in your include commands. If you want to know the full path of executed script, use enviromental variables. (was that your question?) Ahmad Anvari http://i.am/anvari ----- Original Message ----- From: moshe doron To: php-general@lists.php.net Sent: Sunday, October 29, 2000 5:31 PM Subject: [PHP] relative path and include\require i want call one script from other script have different path. so i need command or variable that will setup the path so the called script includes wouldnt have to be updated. does some1 know can i do it? thanx. -- moshe. mosdoron@netvision.net.il icq: 1542485 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#22558) next »