jah35564
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by jah35564
-
-
I am a Information Technology and I am currently taking PHP as one of my classes. My problem now is that when I create a page and try to view it with Apache, it shows up as a blank page. Please someone help me.
Blank pages show up with completed code
in PHP Coding Help
Posted
This is the code that I use:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN""http://www.W3.org/TR/xhtmll/DTD/xhtmll1_strict.dtd''> <htrnl>
<head>
<title>Hello World</title>
</head>
<body>
<?php
/*
define ("WORLD_iNFO", = ",92897000);
define ("SUN_INFO") = 72000000;
define ("MOON_INFO") = 3456;
$WorldInfo = 92897000;
$SunInfo = 72000000;
$MoonInfo = 3456;
*/
<p>
echo "<p>Hello", $WorldVar!" <br />"
echo "The $WorldVar is", WORLD_INFO," miles from the $SunVar.<br />";
echo "Hello ", $SunVar, "!<br />";
echo "The $SunVar's core temperature is approximately", SUN_INFO," degrees Fahrenheit.<br />";
echo "Hello ", $MoonVar, "!<br />";
echo "The $MoonVar is MOON_INFO," miles in diameter.</p>";
</p>
?>
</body>
</html>