Trouble reading all PHP scripts
Posted by: ThrillJunkie (---.hsd1.va.comcast.net)
Date: May 10, 2011 02:59AM

I have a php website working fine on a web host. I installed Wamp to view pages locally and everything appears to be working fine. I am able to query the localhost database and print results to the screen just fine. However, some of the code appears on the pages when I try to view locally (i.e. via the WampServer).

Any ideas why its not reading all the code? Do I need to update something?

Options: ReplyQuote
Re: Trouble reading all PHP scripts
Posted by: yfastud (Moderator)
Date: May 10, 2011 03:31AM

Either use full tag <?php ... ?> or enable short_open_tag through Wamp tray icon

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Trouble reading all PHP scripts
Posted by: ThrillJunkie (---.hsd1.va.comcast.net)
Date: May 11, 2011 12:47AM

yfastud - That worked! My tag was <? ...?>, but changed it as you suggested. Just for kicks, I also enabled short_open_tag (via wamp -> php -> settings -> checked short_open_tag, which also worked as you mentioned.

Thanks again!

Options: ReplyQuote


Sorry, only registered users may post in this forum.