WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
.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:
Reply
•
Quote
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:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login