mgilbert Posted July 16, 2007 Share Posted July 16, 2007 Fatal error: require_once() [function.require]: Failed opening required '/www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare/smarty/libs/Smarty.class.php' (include_path='.:/usr/share/php') in /www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare/include/config.php on line 44 Hosted by Free-Site-Host. ive try alot of stuff with no luck Quote Link to comment Share on other sites More sharing options...
keeB Posted July 16, 2007 Share Posted July 16, 2007 Can I see the actual code where you're trying to include the Smarty.class.php? Quote Link to comment Share on other sites More sharing options...
mgilbert Posted July 16, 2007 Author Share Posted July 16, 2007 email me at skeeter@sat-co.net ill let you look at the whole thing Quote Link to comment Share on other sites More sharing options...
mgilbert Posted July 16, 2007 Author Share Posted July 16, 2007 <? session_start(); $config = array(); $config['BASE_DIR'] = '/www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare'; $config['BASE_URL'] = 'http://www.politicaltube.net/videoshare'; $config['tmpimgpath'] = '/www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare/tmp'; $config['tmpimgpath2'] = '/www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare/tmp'; $config['CONF_FILE'] = $config[bASE_DIR].'/include/conf.ini'; $config['IMG_DIR'] = $config[bASE_DIR].'/images'; $config['IMG_URL'] = $config[bASE_URL].'/images'; $config['VDO_DIR'] = $config[bASE_DIR].'/video'; $config['VDO_URL'] = $config[bASE_URL].'/video'; $config['ADO_DIR'] = $config[bASE_DIR].'/audio'; $config['ADO_URL'] = $config[bASE_URL].'/audio'; $config['FLVDO_DIR'] = $config[bASE_DIR].'/flvideo'; $config['FLVDO_URL'] = $config[bASE_URL].'/flvideo'; $config['TMB_DIR'] = $config[bASE_DIR].'/thumb'; $config['TMB_URL'] = $config[bASE_URL].'/thumb'; $config['baseurl'] = $config['BASE_URL']; $config['basedir'] = $config['BASE_DIR']; $config['vdodir'] = $config['VDO_DIR']; $config['vdourl'] = $config['VDO_URL']; $config['audiodir'] = $config['ADO_DIR']; $config['audiourl'] = $config['ADO_URL']; $config['flvdodir'] = $config['FLVDO_DIR']; $config['flvdourl'] = $config['FLVDO_URL']; $config['imgurl'] = $config['IMG_URL']; $config['imgpath'] = $config['IMG_DIR']; $config['tmbdir'] = $config['TMB_DIR']; $config['tmburl'] = $config['TMB_URL']; $config['ffmpeg'] = "/usr/local/bin/ffmpeg"; $config['mplayer'] = '/usr/local/bin/mplayer'; $config['mencoder'] = '/usr/local/bin/mencoder'; $config['metainject'] = '/usr/local/bin/flvtool2'; $config['guest_limite'] = 2000; $config['total_per_rss'] = 10; require_once($config[bASE_DIR].'/smarty/libs/Smarty.class.php'); require_once($config[bASE_DIR].'/classes/mysmarty.class.php'); require_once($config[bASE_DIR].'/classes/SConfig.php'); require_once($config[bASE_DIR].'/classes/SError.php'); require_once($config[bASE_DIR].'/include/adodb/adodb.inc.php'); require_once($config[bASE_DIR].'/include/phpmailer/class.phpmailer.php'); require_once($config[bASE_DIR].'/classes/SEmail.php'); $DBTYPE = 'mysql'; $DBHOST = SConfig::get("Database", "localhost"); $DBUSER = SConfig::get("Database", "skeeter_videoshare"); $DBPASSWORD = SConfig::get("Database", "123456"); $DBNAME = SConfig::get("Database", "skeeter_videoshare"); $conn = &ADONewConnection($DBTYPE); $conn->PConnect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME); $sql = "SELECT * from sconfig"; $rsc = $conn->Execute($sql); if($rsc){while(!$rsc->EOF) { $field = $rsc->fields['soption']; $config[$field] = $rsc->fields['svalue']; STemplate::assign($field, $config[$field]); @$rsc->MoveNext(); }} STemplate::assign('bgcolor','#E8E8E8'); STemplate::assign('BASE_URL', $config['BASE_URL']); STemplate::assign('BASE_DIR', $config['BASE_DIR']); STemplate::assign('IMG_URL', $config['IMG_URL']); STemplate::assign('baseurl', $config['BASE_URL']); STemplate::assign('basedir', $config['BASE_DIR']); STemplate::assign('imgurl', $config['IMG_URL']); STemplate::assign('vdourl', $config['VDO_URL']); STemplate::assign('adourl', $config['ADO_URL']); STemplate::assign('flvdourl', $config['FLVDO_URL']); STemplate::assign('tmburl', $config['TMB_URL']); STemplate::assign('site_name', $config['site_name']); STemplate::setCompileDir($config['basedir']."/templates_c"); STemplate::setTplDir($config['basedir']."/templates"); ?> Quote Link to comment Share on other sites More sharing options...
keeB Posted July 16, 2007 Share Posted July 16, 2007 Hmm... Looks like something is wrong with your include_path. http://www.php.net/manual/en/ini.core.php#ini.include-path Quote Link to comment Share on other sites More sharing options...
mgilbert Posted July 16, 2007 Author Share Posted July 16, 2007 I think the problem is in this line $config['BASE_DIR'] = '/www/free-site-host.com/s/k/e/skeeter/htdocs/videoshare'; and im using that free hosting service and i dont know the exact directory where everything is stored any suggestions Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted July 16, 2007 Share Posted July 16, 2007 I also think that u have the path error.Use absolute path:http://www.mysite.com/........ and u can also go for include() to include the file. Quote Link to comment Share on other sites More sharing options...
tapos Posted July 16, 2007 Share Posted July 16, 2007 Try this $config['BASE_DIR'] = dirname(__FILE__); -- Tapos Pal Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.