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. Quote 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 Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/84628-solved-starting-code-with/#findComment-431219 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.