~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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
jaymc Posted October 3, 2007 Share Posted October 3, 2007 Syntax issues, I hate them ! Quote Link to comment 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.