Hello,
First of all im not a web designer and have very little knowledge of this subject other then what i can find out on google. All the google search’s show that this error has occurred when people add a template to there website. My website was developed for me and isent associated with a template.
I have switch web hosting company’s and i have moved my website over to the new host. After i have uploaded the site i am getting this error:
Warning: include_once(/usr/local/apache/htdocs/functions/functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/ausplayg/public_html/includes/all.php on line 22
Warning: include_once() [function.include]: Failed opening ‘/usr/local/apache/htdocs/functions/functions.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/ausplayg/public_html/includes/all.php on line 22
Fatal error: Call to undefined function connect() in /home/ausplayg/public_html/includes/all.php on line 22
I have found line 22 in the all.php and it has:
[php]include_once($_SERVER[‘DOCUMENT_ROOT’]."/functions/functions.php"); connect();[/php]
Inside the functions file the only thing i can see from my very little knowledge is a mysql database that has
[php]function connect(){
$connection = mysql_connect(‘localhost’, ‘databaseuser’, ‘databasepassword’);
$db = mysql_select_db(‘databasename’, $connection) or die(mysql_error());
return $db;
}[/php]
If you have a idea how to fix it please reply or you can add me on skype - destero_au
Any help will be hugely appreciated.