Unable to get php to display on webpage.
Moderator: General Moderators
Think the problem might be there...Then I rename it to html to see if works.
Code: Select all
<html>
<body>
<?php
echo "foo";
?>
</body>
</html>Code: Select all
<?php
echo "
<html>
<body>
foo
</body>
</html>
";
?>PHP on the server will parse everything outside <?php ... ?> as the normal html. Renaming the file to .html makes PHP on the server not understand that it should look for the <?php ... ?> tags inside the file...
Yes. Still, how you present that fact can vary...m3rajk wrote:like in anything, before you look to see if it's a zebra, make sure it's not a horse.