falck3 Posted November 21, 2011 Report Share Posted November 21, 2011 man skripts uzrada so tekstu Fatal error: require_once() [function.require]: Failed opening required 'c:\MyWeb/smarty/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fumeeptc/matrix/include/config.php on line 44 kas tas ir un ka to labot? Quote Link to comment Share on other sites More sharing options...
ezis Posted November 21, 2011 Report Share Posted November 21, 2011 Tas ir tas, kas tur teikts! Fails šādā ceļā: c:\MyWeb/smarty/libs/Smarty.class.php nav atrasts iekļaušanai! Iespējams, ka nav norādīta pareiza direktorija vai arī fails neexistē! Quote Link to comment Share on other sites More sharing options...
falck3 Posted November 21, 2011 Author Report Share Posted November 21, 2011 cik saprotu tad problema ir kkur te?? <? error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); session_start(); $config = array(); $config['BASE_DIR'] = 'c:\\MyWeb'; $config['BASE_URL'] = 'http://localhost'; $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['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['ffmpeg'] = '/usr/bin/ffmpeg'; $config['guest_limite'] = 200; $msg=''; $err=''; $config['rows_per_page']=''; $config['cols_per_page']=''; 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", ""); $DBPASSWORD = SConfig::get("Database", ""); $DBNAME = SConfig::get("Database", ""); $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::setCompileDir($config['basedir']."/templates_c"); STemplate::setTplDir($config['basedir']."/templates"); ?> Quote Link to comment Share on other sites More sharing options...
ezis Posted November 21, 2011 Report Share Posted November 21, 2011 Ja nemaldos, tad $config['BASE_DIR'] ir nepareizi nedefinēts! p.s. Lieto code tagus vai http://paste.php.lv/ Quote Link to comment Share on other sites More sharing options...
falck3 Posted November 21, 2011 Author Report Share Posted November 21, 2011 http://paste.php.lv/1fb1c99720bdbc8b46615268a0f36bf5?lang=php Quote Link to comment Share on other sites More sharing options...
falck3 Posted November 21, 2011 Author Report Share Posted November 21, 2011 u ka sito saprast? PERMISSIONS ERROR: Check permission on the image directory: images/ is set to 777 nesaprotu to 777 nozimi Quote Link to comment Share on other sites More sharing options...
ezis Posted November 21, 2011 Report Share Posted November 21, 2011 google power!!! chmod Tev palīdzēs. Ja uz hosta atrodas images mape, tad caur ftp klientu ātri var nomainīt faila atļaujas. Quote Link to comment Share on other sites More sharing options...
Kemito Posted November 22, 2011 Report Share Posted November 22, 2011 $config['BASE_DIR'] = 'c:\\MyWeb'; Adrese ir norādīta uz C: diska MyWeb mape, stipri šaubos, ja pat lieto lokālo hostu, ka adresei vaidzētu uz direktoriju būt šādai. Palasi kodu, patulko to, un padomā 666 reizes, kas par lietām. PHP CHMOD http://php.net/manual/en/function.chmod.php 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.