0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 3483
/ 2 Years ago, fri, march 11, 2022, 2:01:40
Am followoing this amazingly simple LAMP tutorial
http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html
- Installing Apache
- Installing MySQL
- Installing PHP
The PROBLEM is:
- When I check on my brower localhost/phpmysql.php
- I just see BLANK PAGE
- If the php had been runned i should see either CONGRATULATIONS or
ERROR message back.
<?php
$con = mysql_connect("localhost","root","passwordxxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
else
{
echo "Congrats! connection established successfully";
}
mysql_close($con);
?>
Is there any error on this PHP code maybe?
For example: if the password is wrong setup on the PHPMYSQL.PHP file I should get back and ERROR MESSAGE couse i have a ECHO.
Why am getting a blank response? any idea of some workaround?
Thanks
More From » 14.04