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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.