Click to See Complete Forum and Search --> : PHP code being displayed in browser


Anon
12-01-2001, 01:36 PM
Hi
I am running Microsoft PWS and PHP. I have typed in a html form which posts to a php page to display the output.

Problem is it displays the code in the browser window instead of the page. There is nothing wrong with the code as it used to work and happens with all pages i have previously coded and any new ones i try.

It is something to do with the configuration of PWS i beleive. Can anyone help me to fix it?

Thanks
Paul

narch31
12-03-2001, 12:06 AM
Are you sure you installed PHP correctly? Did you test your installation with a phpinfo()?

Anon
12-03-2001, 08:52 AM
if you are using <?, try to do it with <%

just try to write a test script [x.php]:

<?
phpinfo();
?>

if the above isnt working, thy the one below...

<%
phpinfo();
%>

Anon
12-03-2001, 05:05 PM
No, it just displays the code i typed.

I have had it working before but something was on my computer called photoparade which used the same extension. This stopped it working earlier.
I have since reformatted the pc due to other problems but now php wont work, i have installed, re installed, un-installed etc but to no avail.

PHPINFO() doesnt do anything at all whereas previously it would have given the correct page.

Does this help to get any ideas?

Regards
Paul