Re: nested includes()...

From: Date: Tue, 09 Oct 2001 17:38:55 +0000
Subject: Re: nested includes()...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-70524@lists.php.net to get a copy of this message
At 14:06 09/10/01 +0300, Andrey Hristov wrote:
Good style is to have a central scripts with defines such define("SITE_HTML","/var/www/virtual/www.mysite.com/private/html") and so on for every such dir using <?php include SITE_HTML."login.html"; ?> In every directory on your visible part of the web server paste a file with name like this : link_to_defs.php which includes the central script so you can place the central script anywhere in your server. Every script must include/require "link_to_defs.php" and everything will be good, after that you can use your defines. If you want to move your script to another location, there is no problem if in the new place there are link_to_defs.php
yeah... that for me is the best solution.... to have every file calling a single file that can't change its location... and define everything in there... something like a GLOBAL.ASA... that I think is a great idea....

« previous php.general (#70524) next »