Jump to content

[SOLVED] <? tag not working..


~n[EO]n~

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.