PHP is not working
Posted by: refiking (---.hsd1.ga.comcast.net)
Date: July 23, 2009 11:55PM

OK. So, I just installed the WAMP server and found out that skype blocked my apache server from working. Got that working fine now. But, I can't get the php to execute. I don't have a .txt at the end of the file and I am a php developer so I know nothing is wrong with the following:

<?
echo "Hello";
?>

when I wrote HTML, it displayed with no problem, so what is wrong in the configuration of WAMP that I missed? I'm sure it's something like that.

Options: ReplyQuote
Re: PHP is not working
Posted by: toumimi (---.adslgp.cegetel.net)
Date: July 24, 2009 12:13AM

You shouldn't use short open tags (tag without language type).
Right syntax : <?php echo "Hello"; ?>

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: PHP is not working
Posted by: black99vette (---.static.blastcomm.com)
Date: July 25, 2009 03:20AM

I'm having a similar issue with php. I'm using: <?php echo "Hello"; ?> or <?php include("header.php"winking smiley; ?>

It will phrase php in the following:
<form action="test.php" method="post" onsubmit="return validateForm();">

runs php which connects to db and inserts data

Everything else seems to work fine

Options: ReplyQuote


Sorry, only registered users may post in this forum.