I am following a tutorial "PHP & MySQL for dummies" to build a web application. I created a simple test.php
file in web space (/var/www/html
). The problem is that when I type localhost/test.php
in the browser address window, it returns me an empty page. I tried localhost/php.info
and it worked well but I could not find why test.php
does not work.
This is the test.php code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line
<p>
<?php
echo “This is a PHP line”;
phpinfo();
?>
</body></html>
I do appreciate any information.
Thanks.
to
. Also, comment out the PHP, run locally (in browser) confirming it works, then the same on the server. If it then returns try and add back the PHP. Process of elimination. – Anthony Horne May 06 '14 at 13:20