Jump to content


Photo

warning: failed to open dir


  • Please log in to reply
3 replies to this topic

#1 allaboutthekick

allaboutthekick
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 07 August 2006 - 08:57 PM

Ok i am using PHP easy thumbnailer and i am having some trouble
when going to the index page "http://www.allaboutt...whocares/test/" i get this
_____________________________________________

Warning: dir(./file_info/descriptions/): failed to open dir: No such file or directory in /nfs/cust/6/31/89/698136/web/whocares/test/index.php on line 115

Fatal error: Call to a member function on a non-object in /nfs/cust/6/31/89/698136/web/whocares/test/index.php on line 117

_____________________________________________

When i open index.php and start at line 115 it reads this

_____________________________________________

$d = dir("./file_info/descriptions/");

while (false !== ($entry = $d->read())) {
   if ($entry != "." && $entry != "..") {
      $fileinfo[$z] = "$entry";
      $filepath = "./file_info/descriptions/$fileinfo[$z]";
      $newfile = fopen($filepath,"r");

      $description = fread($newfile, filesize($filepath));
      $sort = explode(chr(13),$description);
      $access_sort[$z] = $sort[0];
      #print "it is $z $access_sort[$z]
";
      $date_sort[$z] = $sort[1];
      $rating_sort[$z] = $sort[2];     

      fclose($newfile);
      #print "$fileinfo[$z] $description
";

      $z++;
   }
}

$total_info_files = $z;
$d->close();

____________________________________________

My server host is gate.com and i am using a shared server.
my Absolute Path To Root: /nfs/cust/6/31/89/698136/web

please and thanks in advance for all the help!


#2 mitchellm

mitchellm
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 07 August 2006 - 09:28 PM

What is the link to the file_info folder? The line suggests that the folder is at http://www.allaboutt...test/file_info/ which obviously is wrong. Check the path to that folder and you will solve your problem.

#3 allaboutthekick

allaboutthekick
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 07 August 2006 - 09:36 PM

What is the link to the file_info folder? The line suggests that the folder is at http://www.allaboutt...test/file_info/ which obviously is wrong. Check the path to that folder and you will solve your problem.



yeah the dude named the file File_Info not file_info. THANKS!

#4 mitchellm

mitchellm
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 07 August 2006 - 11:20 PM

No prob..  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users