Click to See Complete Forum and Search --> : PHP help needed for PWS in win98


Anon
09-09-2001, 12:21 PM
Hi i have installed php the latest version and I have tried a php test but the source code only shows up in ie. is this suppose to happen. This is what i typed

<?php
phpinfo();
?>

This is suppose to show some info but it just shows this text.
I need to know if this suppose to happen.

Anon
09-10-2001, 10:34 AM
I had the same problem.
Just start up REGEDIT and go to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Script Map
and add a new thing called ".php" and set it to C:\PROGRA~1\PHP\php.exe (if you have installed PHP there.
if it won't work email me and I'll help you further.

Nathan

Anon
09-11-2001, 07:35 AM
What!?

You shouldn't need to touch the registry!!

I assume you either dom't have a webserver running on your machine or, if you do, it's not set up correctly.

If the first is true, get apache.
if the later is true.... read on!

1. open your httpd.conf file
2. search for the string AddType
3. Insert this text with all the other "AddTypes".
AddType application/x-httpd-php .php

Note: If you save your scripts as anything other than .php then change that part to suit you.

4. Save the file
5. Restart Apache

6. Thank god you didn't play with the registry

Anon
09-11-2001, 09:11 AM
The Topic of the message is: PHP with PWS, so NOT apache. PWS is also a webserver but a little one that isn't so good. But it works. Now if you want to show PHP pages in PWS you have to set up a .PHP action for Pws, just like you explained for apache. Now in PWS to only way to do that is to change the registry.
But one thing you're right, take care when you play with the registry.

Nathan

Anon
09-12-2001, 02:36 PM
Thanks people it now works :)
I just need to learn PHP language now :)