I'm having a client side issue that's probably a server side issue. A test php file of phpinfo will properly display in browser when I navigate to that page. However, when I try to access any other php file, the page is completely blank. Here is one of the php files that won't display anything:
<?php
$mysqli = new mysqli("localhost", "user", "password", "database");
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
echo $mysqli->host_info . "\n";
$mysqli = new mysqli("127.0.0.1", "user", "password", "database", 3306);
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
echo $mysqli->host_info . "\n";
?>
its labeled test2.php and is in the application's root directory. I get a blank page in Firefox and Internal Server Error 500 from Internet Explorer (which is almost never used). I'm not entirely sure where to start with this and any other posts I've found about this were no help.
Also, I'm pretty new to php and what not, so be gentle