Jump to content

directory error (But I can't see anything wrong with it)


supergrame

Recommended Posts

Here is the code:

$CONFIG->wwwroot    = "localhost/project";

$CONFIG->libdir      = "$CONFIG->wwwroot/lib";

require("$CONFIG->libdir/dblib.php");

 

And this is the error:

Warning: require(localhost/project/lib/stdlib.php) [function.require]: failed to open stream: No such file or directory in C:\Xampp\htdocs\project\config.php on line 89

 

Fatal error: require() [function.require]: Failed opening required 'localhost/project/lib/stdlib.php' (include_path='.;C:\Xampp\php\pear\') in C:\Xampp\htdocs\project\config.php on line 89

 

??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???

 

 

 

 

Link to comment
Share on other sites

?

 

class object {};

$CONFIG = new object;

 

/* Edit the database connection parameters below */

 

$CONFIG->dbhost = "localhost";

$CONFIG->dbname = "test";

$CONFIG->dbuser = "root";

$CONFIG->dbpass = "";

 

/*Edit the path to the scripts below*/

 

$CONFIG->wwwroot    = "localhost/project";

 

//Site URL -please use the "http://www.mysite.com" format.

$CONFIG->siteurl    = "http://www.your-domain-name.com";

 

// the support email address-all the mails from the contact form will go there

$CONFIG->support    = "";

 

//Site name-this will be shown on the header,and footer,and also on every email sent

$CONFIG->sitename    = "";

 

$CONFIG->randomfee="5.00";

 

 

//Site  colors

$CONFIG->bgcolor    = "#ffffff";//Background color

$CONFIG->darkercolor="#ADAEAE";//headings color-

$CONFIG->lightcolor="#ffffff";//content color,table borders

$CONFIG->showstats=true;//show the site stats on the left side

 

/*            READY !!!

*            Do NOT  EDIT BELOW!!!

*      OPEN THE INSTALL.PHP FILE IN YOUR BROWSER NOW

*/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

//Site header:you can choose one of ours or you can place your own.

//Just see the header.gif files from the images folder.For custom headers,

 

 

$CONFIG->headerfile    = "$CONFIG->siteurl/images/header_1.jpg";

 

//Edit below ONLY if you changed the current site structure

$CONFIG->templatedir = "$CONFIG->wwwroot/templates";

$CONFIG->libdir      = "$CONFIG->wwwroot/lib";

$CONFIG->imagedir    = "$CONFIG->wwwroot/images";

 

 

                                 

$CONFIG->primu=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#112&#114&#105&#109&#117";

$CONFIG->adminul=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#97&#100&#109&#105&#110&#117&#108&#13&#10";

$CONFIG->hidden="&#104&#105&#100&#100&#101&#110";

$CONFIG->complete=$CONFIG->siteurl."/&#117&#115&#101&#114&#115&#47&#99&#111&#109&#112&#108&#101&#116&#101&#46&#112&#104&#112";

/* load up standard libraries */

require("$CONFIG->libdir/stdlib.php");

require("{$CONFIG->libdir}/dblib.php");

require("$CONFIG->libdir/genlib.php");

 

 

session_start();

session_register("SESSION");

 

/* connect to the database */

db_connect($CONFIG->dbhost, $CONFIG->dbname, $CONFIG->dbuser, $CONFIG->dbpass);

require_once("$CONFIG->libdir/general.php");

 

 

?>

 

 

 

Link to comment
Share on other sites

try this and see where it is failing:

<?

class object {};
$CONFIG = new object;

/* Edit the database connection parameters below */

$CONFIG->dbhost = "localhost";
$CONFIG->dbname = "test";
$CONFIG->dbuser = "root";
$CONFIG->dbpass = "";

/*Edit the path to the scripts below*/

$CONFIG->wwwroot     = "/Xampp/htdocs/project";
if(!realpath($CONFIG->wwwroot)) die('wwwroot is not correct');

//Site URL -please use the "http://www.mysite.com" format.
$CONFIG->siteurl     = "http://www.your-domain-name.com";

// the support email address-all the mails from the contact form will go there
$CONFIG->support     = "";

//Site name-this will be shown on the header,and footer,and also on every email sent
$CONFIG->sitename    = "";

$CONFIG->randomfee="5.00";


//Site  colors
$CONFIG->bgcolor    = "#ffffff";//Background color
$CONFIG->darkercolor="#ADAEAE";//headings color-
$CONFIG->lightcolor="#ffffff";//content color,table borders
$CONFIG->showstats=true;//show the site stats on the left side

/*             READY !!!
*             Do NOT  EDIT BELOW!!!
*       OPEN THE INSTALL.PHP FILE IN YOUR BROWSER NOW
*/















//Site header:you can choose one of ours or you can place your own.
//Just see the header.gif files from the images folder.For custom headers,


$CONFIG->headerfile    = "$CONFIG->siteurl/images/header_1.jpg";

//Edit below ONLY if you changed the current site structure
$CONFIG->templatedir = "$CONFIG->wwwroot/templates";
if(!realpath($CONFIG->templatedir)) die('templatedir is not correct');
$CONFIG->libdir      = "$CONFIG->wwwroot/lib";
if(!realpath($CONFIG->libdir)) die('libdir is not correct');
$CONFIG->imagedir    = "$CONFIG->wwwroot/images";
if(!realpath($CONFIG->imagedir)) die('imagedir is not correct');


                                   
$CONFIG->primu=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#112&#114&#105&#109&#117";
$CONFIG->adminul=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#97&#100&#109&#105&#110&#117&#108&#13&#10";
$CONFIG->hidden="&#104&#105&#100&#100&#101&#110";
$CONFIG->complete=$CONFIG->siteurl."/&#117&#115&#101&#114&#115&#47&#99&#111&#109&#112&#108&#101&#116&#101&#46&#112&#104&#112";
/* load up standard libraries */
require("$CONFIG->libdir/stdlib.php");
require("{$CONFIG->libdir}/dblib.php");
require("$CONFIG->libdir/genlib.php");

                           
session_start();
session_register("SESSION");

/* connect to the database */
db_connect($CONFIG->dbhost, $CONFIG->dbname, $CONFIG->dbuser, $CONFIG->dbpass);
require_once("$CONFIG->libdir/general.php");


?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.