browser opens only source code php code in wamp localhost
Posted by: angelsanchezjr (---.megared.net.mx)
Date: May 07, 2012 11:55PM

Hi, i have win 7 64, i just installed wampserver 2.2 and i want to open some php files in the localhost, and it only open the browser (firefox, i also tried other browsers) the sourcd code, just like the notepad, i change the port to 8080 inthe respective files and nothing, i also try to shut off IIS but it already was off, so i dont know what else to do, please help
Thanks very much in advance for any help.

Options: ReplyQuote
Re: browser opens only source code php code in wamp localhost
Posted by: RiggsFolly (---.as13285.net)
Date: May 21, 2012 12:19PM

Check that you have <?php .... ?>

and not the short tags <? ... ?>


If you want to use short tags you will need to change the php.ini file
short_open_tag = On

Options: ReplyQuote


Sorry, only registered users may post in this forum.