Okay, I have this on the third line of a file...
require_once ('mainfile.php');
This is the contents of mainfile.php:
<?php
Funcion MySQLConnection() {
$connection = @mysql_connect("localhost");
if (!$connection) {
echo("Unable to connect to the database server at this time.");
exit();
}
$selectdb = @mysql_select_db("message_board", $connection);
if (!$selectdb) {
echo("Unable to locate the main database at this time.");
exit();
}
}
Function PrintHeader() {
global $headvars;
echo ('
<html>
<head>
' . $headvars . '
</head>
<body>
');
}
?>
And when I run the script with the require (I've tried include, it does the same thing) it returns this.
Parse error: parse error, unexpected T_STRING in f:\server\pro\mb\mainfile.php on line 3
Now I consider myself quite versed in PHP, but I have no clue what the problem is. I assume it has something to do with the content of mainfile.php, any help would be appreciated.