Jump to content

Recommended Posts

MOVED TO PHP HELP>


Ok i am using PHP easy thumbnailer and i am having some trouble
when going to the index page "http://www.allaboutthekick.com/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]<br>";
$date_sort[$z] = $sort[1];
$rating_sort[$z] = $sort[2];

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

$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!

Link to comment
https://forums.phpfreaks.com/topic/16827-warning-failed-to-open-dir/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.