Webmaster Forums - Website and SEO Help

Web Development and Design => Database, Server, Coding and Website Administration => Topic started by: minky67 on February 20, 2012, 05:28:53 PM

Title: PHP / database error
Post by: minky67 on February 20, 2012, 05:28:53 PM
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
Title: Re: Hi to everyone
Post by: minky67 on February 21, 2012, 04:24:39 AM
Here is the link to a download of the script im using to try and run my site
http://dugout.byethost18.com/fm.zip (http://dugout.byethost18.com/fm.zip)
Title: Re: Hi to everyone
Post by: minky67 on February 21, 2012, 11:27:57 AM
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
Title: Re: PHP / database error
Post by: Webhelpforums on March 03, 2012, 09:16:32 AM
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?
Title: Re: PHP / database error
Post by: nbradshaw on March 28, 2012, 11:55:35 PM
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.
Title: Re: PHP / database error
Post by: AlbertHickman on April 14, 2012, 03:18:56 AM
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??
Title: Re: PHP / database error
Post by: martinrechard on August 06, 2012, 01:33:52 PM
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.