Jump to content



Latest News: (loading..)

- - - - -

Error in recognizing php files short open tags by Wamp server. Please help?


  • Please log in to reply
3 replies to this topic

#1   williampritchard

williampritchard
  • Members
  • 10 posts
  • Real Name:william pritchard

Posted 13 June 2013 - 10:38 AM

I'm using wampserver 2 in my system which running on window 7,  I have created php short tags inside my php files, when ever I run a file it always show me error. Please suggest me what to do. How can i resolve this error.

#2   burt

burt

    Code Monkey

  • Community Team
  • 7,871 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 13 June 2013 - 10:53 AM

Don't use short tags.  They are unacceptable in most environments.

If you have to use them, add short_open_tag to your php.ini file.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#3   williampritchard

williampritchard
  • Members
  • 10 posts
  • Real Name:william pritchard

Posted Today, 11:51 AM

Thanks you so much burt . i used the code given by you and now my problem is resolved.

#4   Jack_mcs

Jack_mcs
  • Members
  • 25,369 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted Today, 12:03 PM

But only temporarily. Short tags are being phased out of php so you writing code that will break at some point. As Burt mentioned, they shouldn't be used.