PHP / database error

Started by minky67, February 20, 2012, 05:28:53 PM

minky67

Hi guys im new here and in desperate need of help.
My project is a online soccer manager game.
Im haveing problems getting it to work all i get is a blank page.
ive created the database added it to the config file like the readme install asks look below

<?php
//database server
$config['server'] = "localhost";
//database login name
$config['user'] = "dbname";
//database login password
$config['pass'] = "pass";
//database name
$config['database'] = "dbname";
//table prefix
$config['tablePrefix'] = "";
//site url
$config['site_url'] = "http://dugout.byethost18.com";
?>


I have left some parts out which i do know im willing to let someone have access to the cpanel and other stuff as its on free hosting until i know i can get it working right.

look forward to earing from you
thx minky67

minky67

Here is the link to a download of the script im using to try and run my site
http://dugout.byethost18.com/fm.zip

minky67

error log from site i get blank page now

[21-Feb-2012 15:38:16 UTC] PHP Warning:  require(slibs/Smarty.class.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/thedugou/public_html/config/startup.php on line 8
[21-Feb-2012 15:38:16 UTC] PHP Warning:  require(slibs/Smarty.class.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/thedugou/public_html/config/startup.php on line 8
[21-Feb-2012 15:38:16 UTC] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'slibs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thedugou/public_html/config/startup.php on line 8
[21-Feb-2012 15:48:33 UTC] PHP Warning:  require(slibs/Smarty.class.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/thedugou/public_html/config/startup.php on line 8
[21-Feb-2012 15:48:33 UTC] PHP Warning:  require(slibs/Smarty.class.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/thedugou/public_html/config/startup.php on line 8
[21-Feb-2012 15:48:33 UTC] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'slibs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thedugou/public_html/config/startup.php on line 8


can anybody help please

Webhelpforums

It seems your script depend on PHP Smarty files. Have you made sure the files are placed in the location your script tries to locate them?
TechSEO360 | MicrosysTools.com  | A1 Sitemap Generator, A1 Website Analyzer etc.

nbradshaw

It would seem you need to make sure your directories are pointing to the right locations. When it says "No such file or directory" this means it cannot find the file in that current directory. I am not sure what environment you have. The best advise I can give is change the directory to the correct directory with the phpsmart files in it or I am sure you can find the smarty files download them and put them in the correct file.

AlbertHickman

I am also having such type of problem and wanted to download smarty file but from where I couldn't understand, can you please tell me??

martinrechard

When you create database for any web application that time you should put on the complete previlages so that no one can hack. Also it is arise the problem if line of code is not written perfectly for generating connection between database and application.