Click to See Complete Forum and Search --> : PHP Win2000 Pro


Anon
02-02-2001, 07:39 PM
Dear User,

I receive the following error message after running the win32 install for php.404 any help would be greatly appreciated.

Warning: Failed opening 'c:\inetpub\scripts\test.php' for inclusion (include_path='') in Unknown on line 0

Anon
02-03-2001, 12:12 AM
in your test.php
did you have a line similar to the following?

<?php
// this line
include("something.php");
?>

if not check your php.ini settings and your inetpub settings

open php.ini
look for a line that says extension_dir
make sure that this points to the directory of your php executable. on mine it says
c:\win2000\php\

check inetpub
open mmc, iisadmin
right click on Default Web Site
click on the Home Directory tab
click on Configuration
check the extensions/app mappings for the file (mine is .php4) and that it is bound to the php.exe so on mine it says c:\win2000\php\php.exe %s %s
the two percent s signs are important
click ok
close inetpub and save settings
go to start->run->command/cmd
type: net stop iisadmin
just say yes
this will stop everything
after that has occurred, type: net start w3svc that should start your WWW/Inetpub services
close dos prompt window
open mmc/iisadmin,
open test.php in your test editor and save it in c:\Inetpub\wwwroot\ as test.php or test.php4 in my case

open your browser and type in the URL http://127.0.0.1/test.php4

you should see it work

here's a test.php4 you can use

<body>
<?php
echo "Hello world";
$var = 5;
$total = $var + 10;
echo "<br>Sum of numbers is: $total<br>";
?>
</body>


good luck

Anon
02-04-2001, 06:33 AM
I don't think the problem lies in the php and IIS configuration like jan-mike says. This looks like a php error message so php is correctly configured.
This is a warning that says it cannot find the file 'c:\inetpub\scripts\test.php' which you probably included with an include('c:\inetpub\scripts\test.php'). Are you sure this file exists? Try it with a slash forward (/) instead of a backslash (\), or try a relative path to this file (../scripts/test.php).

Anon
02-04-2001, 08:51 AM
Do yourself a favor and get "PHP Triad" from www.sourceforge.net. Search for it on the site...

HTH,
Shanx