Why Doesn't <% %> Work?

liunx

Guest
I just got a TCH site. I have a lot of code written which uses the <% %> style. Why isn't it being recognized as php? Am I going to have to turn it all into the other format (with the < and ? symbols)?<!--content-->
The short answer is yes, you will need to change it to "php" or "?"<br /><br />If you are using windows try downloading 12 ghost search & replace from <a href="http://www.supergee.com/ghosts/replace.htm" target="_blank">http://www.supergee.com/ghosts/replace.htm</a> it's shareware and will enable you to search and replace through all your files.<br /><br />Andy<!--content-->
I greped and emacs'd my way through it.... things are mostly working now, thanks!<!--content-->
Hi,<br /><br />You can use notepads replace feature, very handy!<br /><br />Jim<!--content-->
the ASP style PHP start and end tags <% and %> only work if PHP was compiled with the ASP style tags turned on. Apparantly tch didnt turn it on. I always use <?PHP and ?> because that is always gauranteed to work no matter what server my code gets put on.<!--content-->
 
Top