Click to See Complete Forum and Search --> : PHP Parser failed..Plz Help


kisin
09-12-2002, 02:42 PM
Hi,
I have a problem in running the php.Please go through it and let me know the solution.

When i try to run the php script
<?php
echo"Hello PHP";
?>

The script is displayed as it is in the IE 5.0, but it was suppose to print
Hello PHP

I don't know what went wrong.

In my system i have installed
win me
pws
php4.2.1

I have created virtual directory
I have changed the registry setting

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map" to my "c:\php\php.exe"

In PWS MTS is not there.
.html files are working in PWS.

Please let me know the solution.

Thanks in advance

Krishna

dotwebbie
09-12-2002, 03:57 PM
Not being familiar with PWS, I don't know how much I can offer. Did you reboot Windows after applying the change? Did you restart PWS when you made the change?

kisin
09-13-2002, 12:05 AM
Yes I tried all
Rebooting windows,
PWS restart..
I cudn't...

igebert
09-13-2002, 05:12 AM
i don't know much about pws either, but the problem obviously lies within the webserver, not knowing about php and how to process it. Did you follow the instructions in the install.txt ?

In general, you need to register php with the webserver and tell it to send it to the php-processor first and display only the result of the processing to the client -- how this is done i don't know.

dannys
09-13-2002, 08:15 AM
Does Apache run on Win9x? If so, that'd likely be a better option than PWS. If not, check out Xitami as I've heard good things about that too.

http://httpd.apache.org - Apache.
http://www.xitami.com/ - Xitami.

piersk
09-13-2002, 10:13 AM
Thread closed: Multiple posting