From: renevencer13
The following introductory program did not output its PHP script:
<html>
<head>
<title>Exampl e of PHP (phpintro2) </title>
<style type="text/css">
h1 {font-size: 150%; color:green}
h2 {font-size: 130%; color:red}
h3 {color: green}
h4 {color: maroon}
span.highlight {background-color:yellow}
</style>
</head>
<body>
<div style="backgrou nd-image: url(http://renevencer12.50 1megs.com/bk304.gif);
height:1200px;w idth:1200px;flo at:left;border-width:thick; border-color:red; border-style:solid;">
<img src="http://renevencer12.50 1megs.com/pha_014.jpg" width="150" height="150" align="center" />
[PHP]
<?php
echo "Hi, I'm a PHP script!";
?>
[/PHP}>
<h1> the php is supposed to print "Hi, I'm a PHP script!" </h1>
<h1> if it print "Hi, I'm a PHP script!" in green, it is heading </h1>
</div
</body>
</html>
note that:
"If PHP is not installed or the server didn't recognize the file's extension, you will see the source code of the script."
I did not see any PHP source code, the php script did not work. How do I check this?
Thanks
renevencer13
The following introductory program did not output its PHP script:
<html>
<head>
<title>Exampl e of PHP (phpintro2) </title>
<style type="text/css">
h1 {font-size: 150%; color:green}
h2 {font-size: 130%; color:red}
h3 {color: green}
h4 {color: maroon}
span.highlight {background-color:yellow}
</style>
</head>
<body>
<div style="backgrou nd-image: url(http://renevencer12.50 1megs.com/bk304.gif);
height:1200px;w idth:1200px;flo at:left;border-width:thick; border-color:red; border-style:solid;">
<img src="http://renevencer12.50 1megs.com/pha_014.jpg" width="150" height="150" align="center" />
[PHP]
<?php
echo "Hi, I'm a PHP script!";
?>
[/PHP}>
<h1> the php is supposed to print "Hi, I'm a PHP script!" </h1>
<h1> if it print "Hi, I'm a PHP script!" in green, it is heading </h1>
</div
</body>
</html>
note that:
"If PHP is not installed or the server didn't recognize the file's extension, you will see the source code of the script."
I did not see any PHP source code, the php script did not work. How do I check this?
Thanks
renevencer13
Comment