You are here: PHP include_path Not Working ... Any Help ...? « All PHP « IT news, forums, messages
PHP include_path Not Working ... Any Help ...?

Posted by Andrew Peskin on 10/13/84 11:31

I am trying to set the include_path
directive in php.ini so that I can
keep include files outside of the web
root directory.

My directive reads as follows:

include_path = ".;D:\PHP\includes\pear;E:\outsideweb\ewp"

.. => current web directory
D: => applications drive, php directory
E: => data drive, directory outside web root

However, when trying to access the file
by script, I am receiving the following error:

PHP Warning: main(): Failed opening 'conf.php' for inclusion
(include_path='.;D:\PHP\includes\pear;E:\outsideweb\ewp')

I am running:
apache 1.3.31
php 4.3.8
win2k pro

The file at issue resides in the "E:\outsideweb\ewp" folder.

Permissions are granted at the folder level.

Is there an additionally needed directive
in apache httpd.conf? How can I access
files in this directory?

Thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация