php no html yes
Posted by: mckenna.tim (---.hsd1.ma.comcast.net)
Date: December 04, 2011 04:53PM

phpinfo shows php info yet php doesn't work. win7/64 maybe a path issue?

<?
echo "php is working";

?>
yet

<html>
<body>
<p>html works</p>
</body>
</html>

works

Options: ReplyQuote
Re: php no html yes
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: December 04, 2011 05:04PM


Options: ReplyQuote
Re: php no html yes
Posted by: mckenna.tim (---.hsd1.ma.comcast.net)
Date: December 04, 2011 05:37PM

Oy. It would be one thing to replace all the
<? to <?php at the top of pages but not sure I want to do it for an entire codebase.
are there any other options?

<?php
ok so now it works
?>

<html>
<body>
<p>html works <?echo "it would be one thing"?> </p>
</body>
</html>

Options: ReplyQuote
Re: php no html yes
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: December 04, 2011 06:11PM

left click wamp > php> short_open_tags



but in future use <?php

<? is short and not recommended as other programming languages use it as its opening tag

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.