Jump to content

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

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.