Virgo Posted January 27, 2011 Report Share Posted January 27, 2011 Labdien! Mēģinu mājaslapā iekļaut ziņu bloku. To daru ar šādu komandu (fails atrodas direktorijā mape): <html> <body> <?php include("xnews2-0-2/news.php"); ?> </body> </html> Bet tiek atgriezti daži kļūdu ziņojumi: Warning: file_get_contents(templates//content-wrapper.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/manalapa.lv/public_html/mape/xnews2-0-2/news.php on line 30 Warning: dir(news/) [function.dir]: failed to open dir: No such file or directory in /home/manalapa.lv/public_html/mape/xnews2-0-2/functions.php on line 983 Fatal error: Call to a member function read() on a non-object in /home/manalapa.lv/public_html/mape/xnews2-0-2/functions.php on line 985 Attiecīgās rindiņas: $xwrapper=file_get_contents($script['paths']['file']."templates/$template/content-wrapper.html"); $news_dir = dir($script['paths']['file']."news/"); while (false !== ($entry = $news_dir->read())){ Varbūt kāds gudrāks var izlīdzēt? Paldies. Quote Link to comment Share on other sites More sharing options...
indoom Posted January 27, 2011 Report Share Posted January 27, 2011 Tie paziņojumi domāti, lai tos lasītu. No such file or directory in /home/manalapa.lv/public_html/mape/xnews2-0-2/news.php paskaties, kur ir nepareizs ceļš, vai arī skaties vai ir lielie un mazie burti pareizi sarakstīti, uz linuxa tas ir svarīgi. Quote Link to comment Share on other sites More sharing options...
mad182 Posted January 27, 2011 Report Share Posted January 27, 2011 Acīmredzot variablis $template ir tukšs vai vispār nav definēts. 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.