I’m trying to open a html page using fopen but it doesn’t seem to work. Here is my code:
[code]
<?php
if ( isset ($_POST[“submit”])) {
@mysql_connect (“localhost”, “root”, “loonytunes”)
or die (“Could not connect to server”);
@mysql_select_db (“test”)
or die (“Could not connect to database”);
$query = “select * from `login database` where username='{$_POST[“username”]}’ and password='{$_POST
[“password”]}'”;
$result = mysql_query ($query);
if ($result) {
$handle = fopen(“http://localhost/testFolder/landingPage.html”, “r”);
} else {
echo “You are not a member yet. Please register”;
}
}
?>
I’ve done some research on this matter and what I’ve found out is that I might not have permission to access these files or that I have to change some configuration in PHP or apache to allow it to work but I’m not sure how to do that.