PHP
  Home arrow PHP arrow Page 3 - Setting Up a Web-Based File Manager: PHPfileNavigator2
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Setting Up a Web-Based File Manager: PHPfileNavigator2
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2008-04-22


    Table of Contents:
  • Setting Up a Web-Based File Manager: PHPfileNavigator2
  • Installing pfn2
  • Configuring and Using pfn2
  • Final Words

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Setting Up a Web-Based File Manager: PHPfileNavigator2 - Configuring and Using pfn2
    ( Page 3 of 4 )

    By now you should have logged in with the administrator login information that you provided during the installation process. Check out the screenshot I’ve attached below. That’s how the login screen of pfn2 looks. Yes, it also supports “password recovering” features (forgot your password?). So it’s a state-of-the-art file manager.

    Once you are in, navigate to the Admin Area; you can find it on the top of the screen. This is where we can add, delete, and modify groups, users, roots, and the config files (it also can be done with a conventional FTP client). I’d suggest the following: each user should have its (his/her) own main root. Then you can set up a few user groups, such as Administrators and Guests, for example.

    Adding a new user is pretty intuitive. It asks for the name of the user, then comes the username, password, and e-mail, just for notification purposes -- whether the user has the right to change data or not (such as change his/her password, etc.), and whether the user should be “active” or not (this is specified by the Status variable, on or off). You must also enroll the user in a user group and specify whether the user is a PHPfileNavigator2 administrator. The latter gives access to the admin’s control panel.

    Creating a root is a little bit trickier because, just like during the installation process, you need to know the absolute path of the directory with which you want to associate the user. The web path is the one where you can access the folder of the user through a web browser (i.e “hostname.com/johnsmith/” – but don’t add the hostname.com, just /johnsmith/ goes in that field). The absolute path is the “real path” that leads to this folder on the server (for example: “/home/hostname/public_html/johnsmith/” – this is with shared servers).

    Keep in mind that the path must start and end with a slash (“/”) and please don’t confuse it with the Windows-like backslashes (“”). As for creating user groups, that's not hard either. You specify its details and ultimately you can check which of the users are enrolled in that particular user group.

    With this control panel, you can also re-index the data. This is also where you can generate reports, check the logs, and so forth. So pay a visit every now and then to the Admin Area to see what’s happening with your server while you’re sleeping.

    We’ve covered most, if not all, of the configuration options that are available and interest us in this case. Please revise the strategy of how we created a new folder, called “/upload” or “/files” or “/data”, for uploads in the first article of this series without compromising the overall security of our server. Basically, you need to “chmod 777” that folder, because otherwise, you can’t upload data to it with pfn2.

    But to make the data private and to restrict the ability to execute PHP shell scripts, which could help an attacker gain unauthorized access to the server (exploits), we’ve added 4 lines to a file, called “.htaccess”, which we’ve created in our dedicated upload folder. Refer back to the first article to find out what I’m talking about.

    Now the time has come for us to see the final product – pfn2 in action!

    Check out the way thumbnails are used for folders that contain lots of images. It is rather impressive. Nobody would guess it’s just a web-based file manager and not a stand-alone desktop application that requires installation.

    As you can see from the screenshot above, PHPfileNavigator2 is really useful. By knowing its amazing features, you can surely rely on it for personal data and such. But like I already said in the first half of this series, when it’s about storing top priority, confidential projects or files that could compromise national security, you should obviously opt for something more secure than PHP.



     
     
    >>> More PHP Articles          >>> More By Barzan "Tony" Antal
     

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek