simpat1zq Posted January 5, 2008 Share Posted January 5, 2008 Hi, I've downloaded a script that starts off with <?, and it doesn't work(doesn't get processed, apache just sends all the php code). I change it to <?php and it starts working. I am pretty sure that both ways are supposed to work. Is there some config setting that I'm missing? I'm pretty sure that this has been answered a million times, but I tried searching everywhere, and search engines just don't respond well for searches on '<?' I appreciate the help. Link to comment https://forums.phpfreaks.com/topic/84628-solved-starting-code-with/ Share on other sites More sharing options...
Wuhtzu Posted January 5, 2008 Share Posted January 5, 2008 <? only works if you have enabled short tags in your php.ini http://dk2.php.net/ini.core Link to comment https://forums.phpfreaks.com/topic/84628-solved-starting-code-with/#findComment-431209 Share on other sites More sharing options...
revraz Posted January 5, 2008 Share Posted January 5, 2008 And you should use <?php over <?, so don't enable it and just change your code. Link to comment https://forums.phpfreaks.com/topic/84628-solved-starting-code-with/#findComment-431213 Share on other sites More sharing options...
simpat1zq Posted January 5, 2008 Author Share Posted January 5, 2008 haha, I actually just read a whole article that just told me both those things. Anyways, thanks for the help guys. VERY fat. Link to comment https://forums.phpfreaks.com/topic/84628-solved-starting-code-with/#findComment-431219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.