Page 1 of 1

about the error in the code

Posted: Fri Jan 15, 2010 1:09 am
by Umesh37
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>this is html line
<p>
<?php
echo "this is php line";
phpinfo();
?>
</body></html>

this my PHP script.
i have installed Apache web Server,Mysql 5.0,PHP 5.2.11,& Internet Explorer 6.0.But after deploying on web browser it shows only line this is html line.
please tell me what is error in the code?or it is necessary to install the lower version.

Re: about the error in the code

Posted: Fri Jan 15, 2010 3:03 am
by aravona
I copied your code into my own .php file and this works fine for me, I get:

this is html line

this is php line

Then the php info.

I'm using internet explorer 7 and MySQL version 5.1.36, PHP version 5.3.0 and Apache 2.2.11

Re: about the error in the code

Posted: Fri Jan 15, 2010 7:49 am
by AbraCadaver
Is the file extension .html or .php?