RE: [PHP] PHP4 directives in httpd.conf not working

From: Date: Mon, 26 Feb 2001 13:38:46 +0000
Subject: RE: [PHP] PHP4 directives in httpd.conf not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41675@lists.php.net to get a copy of this message
try these: php_value include_path "/my/phpinc/path" but why instead not to create a .htaccess file, or if you don't want it to be modified by user to make a one single auto_prepend with: $file = "$DOCUMENT_ROOT/my/phpinc/path"; if(file_exists($file)) include_once($file); this wouyld work for you better since there would be no chances that the file does not exist (or was deleted by user) and that it won't be included more then once Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Brian White [mailto:bwhite@steptwo.com.au] Sent: Monday, February 26, 2001 2:01 PM To: PHP Subject: [PHP] PHP4 directives in httpd.conf not working I have php4 running under Apache. Under that apache I have several <VirtualHost>s. I want to set to some of the PHP.INI values under one of those hosts. So far I have tried the following values in my httpd.conf file: 1) include_path "/my/phpinc/path" 2) php_include_path "/my/phpinc/path" 3) php3_include_path "/my/phpinc/path" 4) php4_include_path "/my/phpinc/path" None of them have worked - I can't even restart Apache with them in place. "/my/phpinc/path" definitely exists. What am I doing wrong? Regs Brian White ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhite@steptwo.com.au -- 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 (#41675) next »