sparks Posted August 16, 2008 Share Posted August 16, 2008 After I run install.php this is what I get, can anyone help me out with this. I'll post the config.php below. Warning: include_once(/home/content/f/r/x/frxxx/html//adminpanel/func.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/f/r/x/frxxx/html/config.php on line 93 Warning: include_once() [function.include]: Failed opening '/home/content/f/r/x/frxxx/html//adminpanel/func.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/f/r/x/frxxx/html/config.php on line 93 Built2Go Shopping Install Warning: fopen(adminpanel/db.php) [function.fopen]: failed to open stream: No such file or directory in /home/content/f/r/x/frxxx/html/install.php on line 109 Unable to create db.php in adminpanel. Please chmod this folder to 777 and press refresh on this page. Config.php: <?php /* $Id: config.php,v 1.4 2006-04-30 22:22:40-08 scoutt Exp $ */ // vim: expandtab sw=4 ts=4 sts=4: ######################################################################## ## Built2Go PHP Shopping v1.0 ## ## ---------------------------------------------------------------- ## ## Copyright © Big Resources, Inc. All Rights Reserved. ## ## This software must be used in accordance with its licensing ## ## terms and conditions at: http://www.built2go.com/faq.php ## ## ## ## This file may not be redistributed in whole or significant part. ## ## ---------------- BUILT2GO IS NOT FREE SOFTWARE ----------------- ## ######################################################################## /* Set your language... Code: eng for english, nor for norwegian or other... */ @header("Cache-control: private"); $language = "eng"; $version = "1.68"; // version of Shopping script $debug = 1; // used for debugging payment scripts. default at 0 $siteurl = "http://www.pagesofgifts.com"; // no ending slash /* postmode, 1 = paypal (live) 2 = belahost.com/pp (test) */ $postmode = '1'; /* for IIS users you will need to add this manually. eg: c:/Inet/www/path/script_name */ define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']."/"); //no ending slash. $upload_dir = FULL_PATH."/pictures"; // no ending slash // Full url of the module directory $module_dir = $siteurl."/modules"; define('MAXIMAGE_W_SIZE',"150"); // defines max image width size for uploaded images (thumbnail) define('MAXIMAGE_H_SIZE',"150"); // defines max image height size for uploaded images (thumbnail) define('FLOOD_TIMEOUT',"1800"); // defines max time they have to wait before sending messages. used for slowing down spam /* Your emailadress. BE SURE TO SET. */ $from_address = "[email protected]"; /* Sales Tax, enter if your state/country requires it */ define('SALESTAX',"0"); // eg: .055 will be 5.5% - 0 is for NO TAX /* Defines your currency */ define('CURRENCY', "$"); /* payment processors here PAYPAL*/ define('FROM_PAYPAL',"[email protected]"); define('ITEM_NAME',"ShoppingItem"); /* Worldpay */ define('INSTID',"123456"); // worldpay login # /*2Checkout*/ define('SERIAL_ID',"123456"); // 2checkout login # define('CHARSET',"iso-8859-1"); // charset for content_type. only use iso-8859-1 or utf-8 /* How many products do you want per page, admin*/ $buyer_per_page = 25; /* Number of products per each page (after you have selected sub-category) */ $number_of_ads_per_page = 3; //# of rows /* Table names must be set here */ $admintbl = "admin"; $cat_tbl = "categories"; $ads_tbl = "product"; $secure_image = "security_images"; $modules = "modules"; $shop = "shopping"; $sess_tbl = "session"; $review_tbl = "review"; $pay_history = "pay_history"; $email_announc = "email_announc"; $emailqueue = "emailqueue"; $subscr_update ="subscr_update"; $subscribe_in ="subscribe_in"; $faq_tbl = "faq"; $ship_tbl = "shipping"; $attribute_tbl = "product_attributes"; $option_tbl = "product_options"; // set to on (1) it will NOT clean out the session db table automatically. $GLOBALS['noshutdownfunc'] = 1; // set to 0 when install is done // Do not edit below unless you change install directory: $full_path_to_db = FULL_PATH."/adminpanel/db.php"; if (file_exists("$full_path_to_db")) { require($full_path_to_db); } require(FULL_PATH."/$language.php"); $GLOBALS["sessionhash"] = session_id(); include_once(FULL_PATH."/adminpanel/func.php"); ?> Link to comment https://forums.phpfreaks.com/topic/119951-need-help-with-built2go-script/ Share on other sites More sharing options...
php_dave Posted August 16, 2008 Share Posted August 16, 2008 Hi, Either remove the ."/" from this line define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']."/"); //no ending slash. or dont put / infront of your folder names for example $full_path_to_db = FULL_PATH."/adminpanel/db.php"; should be $full_path_to_db = FULL_PATH."adminpanel/db.php"; I havent used the whole package so based on the page of code you have posted and the comment "// no ending slash" - I would plump for the first one to stop any issues in further code pages. HTH Dave Link to comment https://forums.phpfreaks.com/topic/119951-need-help-with-built2go-script/#findComment-617963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.