Re: include error due to php3.ini path?
| From: | Chris Hayes | Date: | Thu, 05 Oct 2000 23:35:48 +0000 |
| Subject: | Re: include error due to php3.ini path? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18781@lists.php.net to get a copy of this message | ||
David,
the files to be included ARE in the same directory.
so shouldn't
> > include_path = ".; localhost" ;
work?
May I draw the groups attention again to the index file being opened from
the localhost, and the include error giving a file location.
With my current settings only localhost php files are php-ed, file-locations
are not.
Any more ideas?
Chris
> > 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
>
> 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
>
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------