Re: Problems with includes

From: Date: Fri, 16 May 2008 19:34:28 +0000
Subject: Re: Problems with includes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274442@lists.php.net to get a copy of this message
Jim Lucas wrote:
Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site "/srv/www/html/" and then you can call them by simply removing the leading slash from your existing calls.
    require 'Tools/tool1/tool1.php';
    require 'Tools/tool2/tool2.php';
So in say, php.ini, I set the include path to something like: include_path = ".:/php/includes:/srv/www/html" Will pointing it at "/srv/www/html" open up any security holes?

« previous php.general (#274442) next »