To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
You should edit file "php.ini" and modify:
include_path = "."
Or if you have some other path for include:
include_path= ".;c:\inetpub\wwwroot"
Good luck!
Thank you for your help, but no success! First, I added the "." to include_path like include_path="." or include_path=".;c\inetpub\wwwroot"
neither did work!?
Do you use "include" directive or not? If use, try to remove it from php file and try just <? phpinfo(); ?> to see what happened.
And, please show me the content of the php file.
This is an extension to the last one. When I deleted the php.ini file from "Windows" directory,I got the same massage:
Warning: Failed opening 'C:\Inetpub\wwwroot\mytest.php' for inclusion (include_path='') in Unknown on line 0
Very bizarre!? Any comment?
Seems like you forgot the %s %s in the registry. When you installed PHP did you add the registry entry for PHP in the Script Map? If you did, were you sure to include %s %s at the end of the path?
I did. The file PWS-php.reg comes with the bundle anyway and there I changed the path like ... ".php"="C:\\Php\\php4isapi.dll" and saved it in the same folder(Php) as said in the Readme file.
The other strange thing is when I tried the call a non-existing file with the extention .php(say ,my.php) on the IE ,I got the same message:
Warning: Failed opening 'C:\Inetpub\wwwroot\my.php' for inclusion (include_path='') in Unknown on line 0
In registry, you should add a key in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map
as this way:
".php"="c:\\Program files\\php4\\php.exe" %s %s
Greetings,
You added the path to php.ini in reply #2, yes?
You may need to put your *.php files in your cgi-bin to execute. That's the way I got my setup to work on PWS on Win98. [--it's simpler on Linux--]
Do the ol' <?php phpinfo(); ?> and test; you should get the goods then.
The browser address would be http://localhost/cgi-bin/phptest.php
[--assuming a file name of phptest.php--]