Re: include error due to php3.ini path?

From: Date: Wed, 04 Oct 2000 01:09:44 +0000
Subject: Re: include error due to php3.ini path?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18505@lists.php.net to get a copy of this message
On Wed, 04 Oct 2000, Chris Hayes wrote: > Dear list, > I (or should I blame Bill?) recently managed to lose my php3.ini on the windows 98 > partition (Windows 98, Apache, PHP, MySQL). > > Now when i have an include in file > http://localhost/whatever/index.php3 > ( require ('lib.inc.php3'); ) > i get an error > Fatal error: Failed opening required 'lib.inc.php3' in > e:\program files\apache group\apache\htdocs\trials\phpmyadmin\index.php3 on line 3 > (It used to work! Aye, it's phpadmin!) > I.e. it tries to find that file on the local file system. So my guess is any of these php3.ini > settings is wrong: > > > include_path = ".;localhost" ;".;c:\php3;e:\Program Files\Apache > Group\Apache\htdocs\trials\phpmyadmin" > ; UNIX: "/path1:/path2" Windows: "\path1;\path2" > doc_root = ;"e:\Program Files\Apache Group\Apache\htdocs" > ; the root of the php pages, used only if nonempty > user_dir = ; the directory under which php opens the script using /~username, > used only if nonempty > ;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use > system default if not > specified) > upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads > extension_dir = "c:\php3;."; > ;./ ; directory in which the loadable extensions (modules) reside > > > I hope someone sees what I did wrong? > > thanks! > Chris If the files aren't in the current directory, you'll need to add the relevant directories that you want searched in the include_path config setting. Include and require calls will search for the named file in the current directory, then in all the directories listed in the include_path. You might want to re-read the part of the manual dealing wirth the configuration settings for more detail. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#18505) next »