I am using WAMP to run my PHP scripts. I am not using short tags. When I select localhost and then the project it shows the whole script including the tags. I just want the ouput to be shown. Please help...
Confused about WAMP
Collapse
X
-
Thanks for the quick response guys. Following is a very basic code,
<?php
echo "Hello World";
?>
And I am not using the short tags.
and the httpd.conf file already has the line 'AddType application/x-httpd-php .php3'.
But the php tags are still not being parsed, meaning the whole script is being displayed in raw form inclucing the php tags.Comment
-
Actually the problem was elsewhere. I was using dreamweaver as my editing tool. Now, dreamweaver has a code section and a design section. I, accidentally, put my code in the design section and then tried to run it which just did not work. A friend of mine brought the problem to light.Comment
-
Ahh I see.
I've never found Dreamweaver all that good when working on PHP code. It's more of a HTML/CSS design tool. It's coding functionality is kind of lacking. (For PHP, anyways.)
You should try something like Netbeans, Eclipse with PDT, or even Aptana. -- All of which are free, and with better PHP development tools than Dreamweaver.Comment
Comment