shafikallur Posted February 17, 2007 Share Posted February 17, 2007 Hello All, I have a script like <?php $message="hello"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?=$message?> </body> </html> which is working in one server and not working in other server.... can any one help out why Is it the problem with <?=$message?> if so how will i enable this in my server ?????????? Please help Link to comment https://forums.phpfreaks.com/topic/38891-not-working/ Share on other sites More sharing options...
redbullmarky Posted February 17, 2007 Share Posted February 17, 2007 you'll need to check 'short_open_tag' in your php.ini file. Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187027 Share on other sites More sharing options...
shafikallur Posted February 17, 2007 Author Share Posted February 17, 2007 I have already tryed the short_open_tag with the below short_open_tag=1, short_open_tag=Yes short_open_tag=True short_open_tag=On But still its not working????????? I got a dedicated server and am changing it in PHP.ini file i am attaching my php.ini file. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187048 Share on other sites More sharing options...
redarrow Posted February 17, 2007 Share Posted February 17, 2007 Do it the easy way then. <?php $message="hello"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php echo $message?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187050 Share on other sites More sharing options...
hvle Posted February 17, 2007 Share Posted February 17, 2007 the correct syntax is short_open_tag = On Did you restart the apache server? Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187051 Share on other sites More sharing options...
shafikallur Posted February 17, 2007 Author Share Posted February 17, 2007 My server is IIS (windows based) And I did'nt restart my server ............... I cannot use the simple methord ( echo $message ) coz i hve alott of clients website running with very big PHP modules running on it ....... Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187055 Share on other sites More sharing options...
redarrow Posted February 17, 2007 Share Posted February 17, 2007 if u dont restart apache then it wont work. Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187058 Share on other sites More sharing options...
hvle Posted February 17, 2007 Share Posted February 17, 2007 My server is IIS (windows based) And I did'nt restart my server ............... ok, why don't you restart and see what happens? Make sure that you changed the php.ini that being used by IIS Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187059 Share on other sites More sharing options...
shafikallur Posted February 17, 2007 Author Share Posted February 17, 2007 Thanks Guys I restarted my server... its working fine now................... Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187067 Share on other sites More sharing options...
MikeDXUNL Posted February 17, 2007 Share Posted February 17, 2007 like redarrow said, why dont you just do it the easy way and use <?php echo $message?> remember, not all servers have short tag enabled Link to comment https://forums.phpfreaks.com/topic/38891-not-working/#findComment-187098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.