Hi,
First of all I'm ashamed to ask this simple question even after seeing lot of threads about this. But I could not make it up. Please help me..
I download shopping cart scripts from some where. The structue of the folder is like this.
admin/
images/
lib/
shopping
templates/
users/
application.php
index.php
login.php
logout.php
In the application.php there are some variables needs to be set which are server related.
I'm testing this on Windows 2000 Server machine running (PHP + Apache + MySql)
//************* application.php ********************//
/* define a generic object */
class object {};
/* setup the configuration object */
$CFG = new object;
$CFG->dbhost = "localhost";
$CFG->dbname = "mymarket";
$CFG->dbuser = "root";
$CFG->dbpass = "mypassword";
$CFG->wwwroot = "/mymarket";
$CFG->dirroot = "/mymarket";
$CFG->templatedir = "$CFG->dirroot/templates";
$CFG->libdir = "$CFG->dirroot/lib";
$CFG->imagedir = "$CFG->wwwroot/images";
$CFG->wordlist = "$CFG->libdir/wordlist.txt";
$CFG->support = "support@mymarket.com";
/* define database error handling behavior, since we are in development stages
* we will turn on all the debugging messages to help us troubleshoot */
$DB_DEBUG = true;
$DB_DIE_ON_FAIL = true;
/* load up standard libraries */
require("$CFG->libdir/stdlib.php"); // THIS IS LINE 45 SHOWN IN ERROR
require("$CFG->libdir/dblib.php");
require("$CFG->libdir/mymarket.php");
require("$CFG->libdir/cart.php");
Apache is set so that
listen 90 &
DocumentRoot "D:/Inetpub/wwwroot/Apache"
Since I placed the mymarket folder in D:/Inetpub/wwwroot/Apache/mymarket I changed the following lines as
$CFG->wwwroot = "/mymarket";
$CFG->dirroot = "/mymarket";
But when I run http://localhost:90/mymarket/
the following error keeps coming..
Warning: main(/mymarket/lib/stdlib.php): failed to open stream: No such file or directory in D:\Inetpub\wwwroot\Apache\mymarket\application.php on line 45
I tried many ways upto my knowledge but could not figured out yet even after I spent the whole day. Atlast I came here with a hope of getting some help from the experts.
Thanks for your help
Faheem
Hong Kong