kalabox Posted August 15, 2010 Report Share Posted August 15, 2010 (edited) Sveiki, tātad kaut kas nogāja greizi un tagat tāda kļūda Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/musicboxv2/sources/database.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/chats.noads.biz/sources/session.php on line 49 Reku 49 rinda require_once(ROOT_DIR."/sources/database.php"); Cik saprotu tad nevar atvērt database.php source direktorijā, bet atrodas tanī pašā direktorijā kur session.php Edited August 15, 2010 by kalabox Quote Link to comment Share on other sites More sharing options...
Kemito Posted August 15, 2010 Report Share Posted August 15, 2010 Ja tas fails atrodas tajā pašā direktorijā kurā atrodas fails kurā tu centies kautko ielīmēt tā teikt! Nenorādi direktoriju, bet gan vienkārši faila nosaukumu. Quote Link to comment Share on other sites More sharing options...
briedis Posted August 15, 2010 Report Share Posted August 15, 2010 (edited) Drošāk tomēr norādīt absolūto ceļu. kalabox, toč tas fails tur eksistē? un kas izvadās uz šo te: var_dump(file_exists(ROOT_DIR."/sources/database.php")); Edited August 15, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 15, 2010 Author Report Share Posted August 15, 2010 bool(false) Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/musicboxv2/sources/mailer.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/chats.noads.biz/sources/session.php on line 50 49, 50, 51 rinda var_dump(file_exists(ROOT_DIR."/sources/database.php")); require_once(ROOT_DIR."/sources/mailer.php"); require_once(ROOT_DIR."/sources/form.php"); Nomainīju visus 3 uz var_dump(file_exists(ROOT_DIR."/sources .. .. . un reku bool(false) bool(false) bool(false) No config value Set yet in session Quote Link to comment Share on other sites More sharing options...
briedis Posted August 15, 2010 Report Share Posted August 15, 2010 (edited) Nu neeksistē tev tur tāds fails! Pārbaudi ceļu... Edited August 15, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 15, 2010 Author Report Share Posted August 15, 2010 http://chats.noads.biz/bilde.JPG Quote Link to comment Share on other sites More sharing options...
briedis Posted August 15, 2010 Report Share Posted August 15, 2010 Nu ceļu jau tu gan pats vari izdomāt! :) Kaut vai atver to failu pa taisno pārlūkā un liec viņam izvadīt savu reālo atrašanās vietu- var_dump(__FILE__); Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 15, 2010 Author Report Share Posted August 15, 2010 (edited) man liekas php ini failaa nav kaut kas tam serverim, pārliku uz kompja xampp aizgāja viss.. Ieteikumi?? Edited August 15, 2010 by kalabox Quote Link to comment Share on other sites More sharing options...
Val Posted August 15, 2010 Report Share Posted August 15, 2010 norādi pareizu ROOT_DIR vērtību. Bildē windows, kur tāds ceļš kā pirmajā postā diez vai būs... Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 15, 2010 Author Report Share Posted August 15, 2010 Izveidoju pa jaunu direktoeiju un ieliku tamajā datus iekšā. tagat tāda šaize Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\tests\libs\Pear\DB.php on line 311 @$obj =& new $classname; Quote Link to comment Share on other sites More sharing options...
briedis Posted August 15, 2010 Report Share Posted August 15, 2010 aizvāc @ un & zīmi.. Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 16, 2010 Author Report Share Posted August 16, 2010 tas ir tapēc ka ir jaunāka php versija, ja?? Quote Link to comment Share on other sites More sharing options...
briedis Posted August 16, 2010 Report Share Posted August 16, 2010 http://ej.uz/sfe 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.