RE: [PHP] DOCUMENT_ROOT

From: Date: Wed, 25 Apr 2001 14:18:35 +0000
Subject: RE: [PHP] DOCUMENT_ROOT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50301@lists.php.net to get a copy of this message
what about having an .htaccess file in each web root? You can't have vartiables in your server's config files. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Jaxon [mailto:jaxon@salamander.net] Sent: Wednesday, April 25, 2001 10:33 PM To: Maxim Maletsky Cc: PHP General Mailing List Subject: RE: [PHP] DOCUMENT_ROOT Not to beat a dead horse, but assuming a site structure like this: /htdocs /htdocs/modules /htdocs/includes /htdocs/templates where all my PHP logic scripts are in htdocs, and all the bits and pieces are in the other dirs, is there any way to set include_path to: $include_path = "$DOCUMENT_ROOT/config; $DOCUMENT_ROOT/includes; $DOCUMENT_ROOT/templates;" so I can just include("filename.inc.php"); where ever I am in my structure, without worrying about putting in a relative or absolute path, AND do this without altering the php.ini?? (cuz I may not have access to it in a shared hosting env) cheers, jaxon -- 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 (#50301) next »