feebs
Reģistrētie lietotāji-
Posts
27 -
Joined
-
Last visited
feebs's Achievements
Newbie (1/14)
-
Vai taa nevareetu buut, ka nav iisti nokonfigurets apachis, php, vai nav nomainitas dir. celi, jo sim visam vajadzeetu iet bez mainiisanas, jo lapa ir nemta straadaajosa.
-
Kuras sajaa gadijumaa skaitaas masiivu elementu atsleegas?
-
Nevajag taisīt muļķīgas QUOTEs! Nostraadaaja, bet ko dot papildus isset Ir vel dazas kludas - varbut vari palidzet? Undefined index: PATH_INFO in C:\Program Files\Apache Group\Apache\htdocs\private\inc\libs.inc on line 80 Undefined index: print in C:\Program Files\Apache Group\Apache\htdocs\private\inc\libs.inc on line 83 { include ('navi.inc'); $this->connection=$this->doConnect($connstring); $this->encoding=$langprops[$language]['internal']; $this->page=$pages[$language][$name]; $this->page['encoding']=$langprops[$language]['template']; $this->page['adminmode']=$this->adminMode(); $this->page['params']=$this->getParams(); $this->page['sliders']=$this->arrRandom(2, 4); $this->page['sourceurl']='http://'.$_SERVER["SERVER_NAME"].$_SERVER['PHP_SELF'].$_SERVER['PATH_INFO']; $this->page['basicsitevars']=$this->readBasicsItem($this->page); if ($_GET['print']=='true') { $this->page['template']=$printtpl[$language]; $this->page['printmode']=true; } //$this->readNews(false, Array(3),3,3); }
-
Izmet Notice: Undefined index: admin in C:\Program Files\Apache Group\Apache\htdocs\private\inc\libs.inc on line 370 } function adminMode () { if (sizeof($_COOKIE)>0) { session_start(); if ($_SESSION['admin'] == true) { return true; } else { return false; } } else { return false; } }
-
Lūdzu nevajag taisīt bezjēdzīgas QUOTEs Urrraaaaa...!!!!!!! Aizgaaja pirmais solis!!! Paldies visiem par palidzibu, bet izraadijaas risinaajums bija vienkarsh :) Vajadzeja tikai php.ini failaa atkomenteet un papildinat rindinu ar include_path = ".;c:\Program Files\Apache Group\Apache\htdocs\ss\ql"
-
Ieliku: define("ROOT", $HTTP_SERVER_VARS['DOCUMENT_ROOT']."/"); -8.liinija require_once(ROOT."ss/ql/setup.inc"); -9.liinija Izdzesu: require('setup.inc'); Tagad verot lapu paradijas: Notice: Undefined variable: HTTP_SERVER_VARS in C:\Program Files\Apache\htdocs\index.php on line 8 Warning: require_once(/ss/ql/setup.inc) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache\htdocs\index.php on line 9 Fatal error: require_once() [function.require]: Failed opening required '/private/inc/setup.inc' (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache\htdocs\index.php on line 9
-
c:\webs\index.php atrodas starta index.php bet c:\webs\en\index.php un c:\webs\pg\index.php atrodas papildindexi. Siem visiem trijiem, kaa arii pareejiem indeksiem ir ieraksts require('setup.inc'); Pats setup.inc atrodas c:\webs\ss\ql\setup.inc Jautaajums: Vai nerakstot ieksh index.php include('../../ss/ql/setup.inc'); pastav kada cita alternativa, lai atstatu standarta require('setup.inc');? Jo cik noprotu taa lapa ieprieks ir straadaajusi nemainot require('setup.inc');
-
LŪDZU nevajag taisīt muļķīgas QUOTEs apmeeram taa: index faila tek. dir. kur pieprasa setup.inc index faili, kuri atrodas citas dir. un kuri ari pieprasa setup.inc ../snjaga/setup.inc - pats fails atrodas 2direktorijas uz augshu. vai tad tikai vienigais risinaajums ir salikt setup.inc tajas dir. kur atrodas index faili?????
-
Tas butu skaidrs, bet ka var require('setup.inc') - tekošajā direktorijā atrast 'setup.inc', ja ir vairaki index faili, kuri atrodas vienu direktoriju uz augšu un katrs citaas mapess un tie palaizoties ari pieprasa setup.inc, bet tas setup.inc atrodas divas direktorijas uz aukshu.. Varbuut mani jautaajumi izklausaas diivaini, bet tas ir tadel, ka es esmu dabujis jau izstraadaatu lapu, kuru vajadzetu palaist, bet nevaru iisti iebraukt kaa taa palaizhaas :(
-
index.php: <?php //error_reporting(E_ALL); //do banera BEGIN if (strstr($_SERVER['HTTP_USER_AGENT'],'Opera') || strstr($_SERVER['HTTP_USER_AGENT'],'Gecko')) $flash=0; else $flash=1; //do banera END require('setup.inc'); $mysite = new Site ("pl","index",$connstring); $content=$mysite->processForSmarty(); $smarty = new Smarty_PBKM; $smarty->assign("content",$content); //do banera BEGIN $smarty->assign("flash",1); //do banera END //include ('ankieta.php'); $smarty->display($mysite->page['template']); $mysite->undoConnect(); ?> bet ka sajaa piemeeraa require('setup.inc') vinsh var atrast, ja fails setup.inc neatrodas index.php direktorija?
-
Nevajag taisīt muļķīgas QUOTEs Vai relativais buutu require('/celsh/setup.inc') un absolutais require('C:\mans\celsh\setup.inc') Vai vispar nepastav tada iespeja, ka to failu varetu kadi sameklet automataa require('setup.inc') nenoradot celu? Vai tomer vienmer ir jabut require('C:\mans\celsh\setup.inc');
-
Vai vispar nepastav tada iespeja, ka to failu varetu kadi sameklet automataa require('setup.inc') nenoradot celu? Vai tomer vienmer ir jabut require('C:\mans\celsh\setup.inc');