Jump to content

<?=$message?> not working


shafikallur

Recommended Posts

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

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

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

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.