This has probably been done a thousand times but I am yet still to find a suitable answer.
I was running on localhost:
Op Sys: Win98
Server: PWS
PHP: Can’t remember exactly.
Version: CGI
And running a small php package that was all working fine for 18 months or so.
I decided to (upgrade?) my localhost system to:
Op Sys: Win2k Prof
Server: IIS 5
PHP: 4.2.3.
Version CGI
Dir c:\php
PHP is tested and working.
I thought that I would just copy my directory over and all would be ok. But I am now getting the following error:
Fatal error: Failed opening required 'inetpub/wwwroot/directory/lib/stdlib.inc.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\directory\application.inc.php on line 67
Line 67 is:
require ("$CFG->libdir" . "/stdlib.inc.php");
where "$CFG->libdir” = /inetpub/wwwroot/directory/lib
My php.ini file located in winnt dir has:
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes;c:\inetpub\wwwroot\pgmarket\lib"
I have been investigating this for the last couple of days and have tried a number of things (ie include_path = "." – did not work) and manually using a relative path and this works ie:
require (lib/stdlib.inc.php);
But if I do the full path it does not
require (“inetpub/wwwroot/directory/lib/stdlib.inc.php”);
Can anyone suggest how I may fix (or a definitive place to read up on it)?? As I upload the files to a Unix server and would not like to change all paths to relative.
I believe it is something wither with my php.ini (which I have tried a few variations of with include_path) or iis?
Thanks in advance