jcasabona does not currently provide support for this item.

31 comments found.

It does not work. I am not sure, but it says something about function can’t be found. There is no config or SQL to setting with my host database.

What is it that I meed to do? Here’s the info error:

Files from Jean Pe Files

Illustrates Directory Class

Warning: opendir(Jean Pe Files) [function.opendir]: failed to open dir: No such file or directory in /home/nhccom/public_html/file/dirhand/DirectoryHandler.php on line 57

Warning: readdir(): supplied argument is not a valid Directory resource in /home/nhccom/public_html/file/dirhand/DirectoryHandler.php on line 60


Looks like it’s saying the the folder cannot be found- you need to include the proper path to the folder when you create a new instance of DirectoryHandler(), relative to where the Directory Handler files are. This is all explained in the read me file.


Well,I created a sub-domain name and called it file. So, the folder name is FILE .. Where exactly, according to the readme, that I need to put the folder directory function? What part of the script I need to make change any change?

Do I need to do anything since the main folder directory is the main sub-domain.?



First, it looks like you’re including a file, via the absolute server path. This will not work because the DirectoryHandler gets the folder relative to itself, as stated in the documentation. Also, this list files in a directory, so including a file itself will not work as index.php is not a directory.

If you want to include the files in the same directory as the DirectoryHandler, the path you include is simply ”/”

= new DirectoryHandler(”/”);


Note that I tried using it on the same sub-domain name, but on another file, named it f, and I copied my host whole directory beginning with /home/....f, and the site is open and I can see like the demo page shows, http://file.n1hc.com/f/ but still not getting it:

First, I don’t understand why there are files on there, and I do not see how I will be able to add my own files.

Second, when I click on any of the files on the site, it turn blink error 404 page can’t be found. In other word, links are breaking.

Plus, I do not understand why it’s not working on the main sub-domain, but on a folder. I supposed that it would work and recognize the domain name is the folder name, which is where I want it to be.

Where else on the script I need to make change to fix those issues?


I bought and am very happy with your script.

However, some characters are not showing properly in the list (I am in France and I gues the problem is with the char set… how can I change it to UTF8 or the right charset) ?

thanks for your help asap


what about the sortfunction?

in your screenshots the files are notsorted. is this possible to sort the files asc or desc by filename?


Hello! There is unfortunately no way to sort the file names, though I may update this when I have time, as this has been a common request.

In most cases, you’ll find that the web server already sorts the file names in DESC order.

Dear jcasabona,

Thank you for the great product, I used it as a quick gallery and it is working perfectly!

I highly recommend it to anyone!

PS It would be great if you could add the sorting feature. Best regards, PersianGulf

Thank you! And I will certainly consider that- it’s a common request!

Can you restrict certain top-level folders?

Can this handle video?

Is it HTML 5 Compatible? (IE-be seen on Mobile Devices) ?

Hi! You cannot restrict any folders. This will simply list all of the files.

It will generate a link to the video but it will not embed video.

This generates simple markup; so while I don’t use any tags that are specifically HTML5 , since HTML5 is backwards compatible and this is basic markup, I suppose it is HTML5 compatible. It does not use any Flash, so it can be seen on mobile devices.

Can I get something more simple like: Put your directory in this admited formats (x,y,z) where it says “Put_your_directory_here”

I just can’t get how to make the basics of this work

This is the code for my index.php

$dir= new DirectoryHandler('/public_html/filemanager');
$imgDir= new ImageDirectory('/public_html/filemanager', 150, 150);


            <!--Default CSS and CSS for JQuery Stuff-->
            <link type="text/css" href="style.css" rel="stylesheet" />
            <link type="text/css" href="js/css/jquery-ui.css" rel="stylesheet" />
            <link type="text/css" href="js/css/jquery.lightbox-0.5.css" rel="stylesheet" media="screen" />

            <!--JQuery Stuff-->
            <script type="text/javascript" src="js/jquery.js"></script>
            <script type="text/javascript" src="js/jquery-scrollTo.js"></script>
            <script type="text/javascript" src="js/jquery.lightbox.js"></script>

            <!--Initiate Functions are here-->
            <script type="text/javascript" src="js/javascript.js"></script>


<div id="dir">
    <h3>Files from <?=$dir->normalName($dir->dirName)?></h3>
    <p>Illustrates Directory Class</p>

    <?php $dir->printDir(); ?>

<div id="container" class="images">
    <h3>Files from <?=$imgDir->normalName($imgDir->dirName)?></h3>
    <p>Illustrates ImageDirectory Class, which extends the Directory Class</p>

    <?php $imgDir->printDir(); ?>

and I’m getting this: http://cameronhird.com/filemanager/files_index.PNG Thanks for checking this.

Oo boy a directory handler from one of my favorite Wordpress theme authors! Do I sense a wp file manager plugin on the horizon?

Oh my- I’m so sorry I didn’t see this! I’ll have to take a look at my settings. Thanks! You know…that’s not a bad idea :-)

Could this be used with Superlist Theme (HTML, CSS, JavaScript). I’m running on MAC platform. Would like to this feature with this layout.