~n[EO]n~ Posted October 3, 2007 Share Posted October 3, 2007 hi all; i had updated my PHP to 5.2 and my <? tag is not working , it was working before. There are lot of pages so making <? to <?php got time consuming and i changed the setting in php.ini file short_open_tag = on it was off and i changed it to on but it is still not working, i restarted my apache and my pc too, but it still does not work, any help Link to comment https://forums.phpfreaks.com/topic/71635-solved/ Share on other sites More sharing options...
MasterACE14 Posted October 3, 2007 Share Posted October 3, 2007 try turning it back off, then restart Apache, then turn it back on, then restart Apache. Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360649 Share on other sites More sharing options...
~n[EO]n~ Posted October 3, 2007 Author Share Posted October 3, 2007 nah... didn't work for me, any other solution Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360650 Share on other sites More sharing options...
shocker-z Posted October 3, 2007 Share Posted October 3, 2007 open a file in dreamweaver and then (ctrl+f) to find, select "find in" and choose folder (now choose the folder your searching) and replace <? with <?php and it will go through all files and find and replace <? with <?php. It's always recomended to use <?php instead of <? anyway. Liam Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360654 Share on other sites More sharing options...
jaymc Posted October 3, 2007 Share Posted October 3, 2007 Try get a default php.ini file and put the short tags to on, dont edit anything else use that and restart apache.. Does it work then? Just trying to eliminate it being a config error somewhere because why wouldnt it work fresh out the box as they say providing php.ini hasnt been tampered with exclusively Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360657 Share on other sites More sharing options...
~n[EO]n~ Posted October 3, 2007 Author Share Posted October 3, 2007 Yeah now working, it was a silly mistake from my side short_open_tag = on; it should have been short_open_tag = on One extra semicolon was causing the problem, anyway thanks to all of you guys Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360665 Share on other sites More sharing options...
jaymc Posted October 3, 2007 Share Posted October 3, 2007 Syntax issues, I hate them ! Link to comment https://forums.phpfreaks.com/topic/71635-solved/#findComment-360666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.