Hi.. Thanks everyone! Hmmm my code works just fine I think... Because it worked OK when i viewed it @ localhost. However, when I uploaded it to a server (Unix, Apache), and when I tried to view from the net, it seems that the browser asks me to download the file and view it in Dreamweaver. I would get the same thing from my localhost if i remove this line from my httpd.conf.
LoadModule php5_module "c:/wamp/php/php5apache2.dll"
The difference is that I'm running Windows XP for my localhost and the server works in Unix... Difficult fix :S I've added the following lines to my httpd.conf file in the apache server:
ScriptAlias /php4/ "path"
AddType applicationx-httpd-php4 .php
Action application/x-httpd-php4 "/php4/php.exe"
Is it appropriate?
I also tried
AddType application/x-httpd-php .php
And it didnt work :S
Thanks anyone who can help 🙂