My PHP files in Apache open as plain text in all browsers.. what can I do?

tim

New member
Someone told me to make a .htaccess file. I just did that, dragged it to htdocs and followed another tutorial telling me to enter:
RemoveHandler .html .htm
Addtype Application x/ http php .php .htm .html
Still doesn't do anything. Does anyone know what's wrong?

My PHP file contains the following:

<form action="welcome.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

In fact, all PHP files display as text (what I mean by that is that the actual source code is all I see in my browser).. but this is an example.

Thanks
doubt that's the issue.. and I'm pretty sure I've tried that. and the same happens on my laptop
 
Back
Top