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
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Install

Install Conversation regarding installation and upgrade of PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-03-2000, 08:07 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
PHP4.1 and Win98/PWS


Hi,Folks

I need an expert help!!! I have been trying to install PHP4.1 on Win98/PWS. After a number of attempts finally I have got the following message:

Warning: Failed opening 'C:\Inetpub\wwwroot\myfirst.php' for inclusion (include_path='') in Unknown on line 0

What should I do? Any comments much appreciated!!!
Anon is offline   Reply With Quote
Old 07-03-2000, 10:09 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

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!
Anon is offline   Reply With Quote
Old 07-04-2000, 02:06 AM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi, Dallas

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!?
Anon is offline   Reply With Quote
Old 07-04-2000, 02:13 AM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

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.
Anon is offline   Reply With Quote
Old 07-04-2000, 03:44 AM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi,

I didn't use "include" directive in the first test program. Anyway, this is the second test program(mytest.php):


<BODY>
<?php
phpinfo();
?>
</BODY


Warning: Failed opening 'C:\Inetpub\wwwroot\mytest.php' for inclusion (include_path='') in Unknown on line 0
Anon is offline   Reply With Quote
Old 07-04-2000, 05:26 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Is the mytest.php file located at 'C:\Inetpub\wwwroot\mytest.php'?
Anon is offline   Reply With Quote
Old 07-04-2000, 11:29 PM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi,

Yes. I saved it there.
Anon is offline   Reply With Quote
Old 07-04-2000, 11:49 PM   #8
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi,

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?
Anon is offline   Reply With Quote
Old 07-05-2000, 04:00 AM   #9
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

I think you didn't config your PHP correctly in PWS. Please read the "README.txt" shipped with PHP4 carefully and start over again.
Anon is offline   Reply With Quote
Old 07-05-2000, 11:02 AM   #10
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS


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?


Anon is offline   Reply With Quote
Old 07-06-2000, 02:23 AM   #11
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi,

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


Anon is offline   Reply With Quote
Old 07-06-2000, 05:49 AM   #12
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Did you add %s %s in the script map key in registry?
Anon is offline   Reply With Quote
Old 07-06-2000, 01:49 PM   #13
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

Hi,

I didn't. I didn't see such an instruction
in the Read file. If you tell me exactly what I need to do I'd be more than happy!
cheers...
Anon is offline   Reply With Quote
Old 07-06-2000, 09:18 PM   #14
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4.1 and Win98/PWS

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
Anon is offline   Reply With Quote
Old 05-28-2001, 06:53 PM   #15
lvondyl
 
Join Date: May 2001
Posts: 1
RE: PHP4.1 and Win98/PWS

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--]

...hope this helps,
~lance
lvondyl is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:20 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.