countrydj Posted August 30, 2016 Share Posted August 30, 2016 Hi Guys...I have a lot of site written in mysql/php from a long time ago.In those days, the opening of a php script was <? .Then it changed to <?phpThere was no need to go back and change all the old coding. Everything wirked OK.However, yesterday, the old <? stopped working and I had to change ALL <? to <?php.The only thing that changed was that I moved my name servers to a new location. The webserver wasn't touched.Can anybody tell me why this would happen without warning?Thanks,John C Quote Link to comment https://forums.phpfreaks.com/topic/302041-why-did/ Share on other sites More sharing options...
requinix Posted August 30, 2016 Share Posted August 30, 2016 Your new server doesn't have short_open_tag enabled. Best practice is to use the full "<?php" so the changes you made were a good thing. Quote Link to comment https://forums.phpfreaks.com/topic/302041-why-did/#findComment-1536856 Share on other sites More sharing options...
Nebox Posted August 31, 2016 Share Posted August 31, 2016 I agree with requinix, the short_open_tag is disabled, you might want to take a look at PHP.ini Though it wasn't good idea writing scripts with the short tags in first place, full tag is safer to use. Quote Link to comment https://forums.phpfreaks.com/topic/302041-why-did/#findComment-1536901 Share on other sites More sharing options...
benanamen Posted August 31, 2016 Share Posted August 31, 2016 (edited) OP, You were already given numerous replies to this on the other forum. Why are you again posting the same exact question here? As you said the other day on the other forum "Thanks to everybodt for all you help and advise. My web sites work well now. I changed everything to <?php" Edited August 31, 2016 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/302041-why-did/#findComment-1536902 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.