Jump to content
php.lv forumi

Daži errori


Virgo

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...