Localhost/test.php Returns Nothing
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 l
Solution 1:
You said that you put your script in /var/www/html
So the link might be
localhost/html/test.php
Also check the error log file for PHP error.
# cat /var/log/apache2/error.log
EDIT: Change your quote, ” are for Word document and not programming ;-)
<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>
Solution 2:
I have tried with this..just type the word localhost followed with name of the work eg.. localhost/test.php in the navigate bar on your browser then click enter
Post a Comment for "Localhost/test.php Returns Nothing"