.PHP file is not working
Posted by: harshish (---.hsd1.il.comcast.net)
Date: April 27, 2012 04:31AM

Hi ,
I am trying to run text.php in Chrome
<HTML>
<HEAD>
<TITLE>My First PHP Program</TITLE>
</HEAD>
<BODY>
<?
echo “I’m a lumberjack.”;
?>
</BODY>
</HTML>

it does not give me Error . it loads the page and only fill the title


if i put
<?php
echo “I’m a lumberjack.”;
?>

it gives me error 500
Please help me

Options: ReplyQuote
Re: .PHP file is not working
Posted by: RiggsFolly (---.as13285.net)
Date: April 27, 2012 05:03PM

Use

<?php


?>

and not <? ?> the short tags.

Otherwise change the php.ini short_tags = On

Options: ReplyQuote


Sorry, only registered users may post in this forum.