Hey everyone, I am trying to create a php site and the first part is a user login system. I wrote the database functions and put them in a seperate file called MySQL.php and I am trying to use require_once to include the file. However whenever I use the require_once, require, or include command the script doesn't execute it just loads to a blank page and doesn't even show any html or the document title. As soon as I comment out that line it works fine, such as showing the result of phpinfo() and any html in the document. I am totally lost as to why this is. Below is how I have the lined coded:
require_once('./database/mysql.php');
Here is how the code is written:
Any help would be greatly appreciated!
require_once('./database/mysql.php');
Here is how the code is written:
PHP:
<?php
require_once('./database/mysql.php');
phpinfo();
?>
<html>
<body>
hey
</body>
</html>
Any help would be greatly appreciated!