PHP
  Home arrow PHP arrow Page 2 - Setting Up a Web-Based File Manager: b...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 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? 
PHP

Setting Up a Web-Based File Manager: bfExplorer
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2008-04-15

    Table of Contents:
  • Setting Up a Web-Based File Manager: bfExplorer
  • Installing bfExplorer
  • Configuring and Using bfExplorer
  • Taking a Break

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Setting Up a Web-Based File Manager: bfExplorer - Installing bfExplorer
    (Page 2 of 4 )

    As always, first things first: download the latest release of bfExplorer from here. Extract the archive to a specific folder on your local machine. I strongly suggest reading the "install.txt" document because it explains the whole installation process.

    Create a new SQL database on your server. BfExplorer works with both MySQL and PostgreSQL. The database should be empty, but it's not necessary because new tables can be created. You can create a new database by logging into your cPanel admin panel and choosing "MySQL® Databases" or its PostgreSQL alternative. Then, you create a new database; for example, we'll create "hostname_users".

    It's really important to point out that in general, paid hosting web spaces are on shared servers. This means that you don't have your own dedicated server reserved just for your needs - more than one customer is sharing the same server. Because of this, for example, MySQL database names always start out with the name of your hostname as a prefix. Let's say your hostname is "iamconfident." When you create a new database with the name "users," it's going to be named "iamconfident_users."

    Keep in mind that we'll need the username and password of the user that has administrator access to the database. This, more often than not, is the same as your cPanel login information. If you're struggling to find out your account details in order to log into your MySQL database, then contact tech support and ask for help. If you are running your own web server, then it's appropriate to assume that you are aware of this.

    Now we're practically prepared for the installation process. Host the contents of the uncompressed archive to a particular folder on your web server. Let's use the following: "/public_html/bfExplorer". Now you can access it later by typing in the URL, "hostname.com/bfExplorer". You can upload the files "conventionally" with FTP clients.

    There's one more thing prior to installation. The install script requires write access to the following files: "/libs/settings.lib.php" and "/files/config.php". And, of course, read access to the rest of the files. Due to the write requirements, you need to change the permissions of these two files. You do this by "chmod"-ing them to "777". FTP clients can do this by right clicking on the file, picking File Attributes, and ticking everything in.

    To jump start the installation process, just visit the aforementioned link; redirect your browser to the folder where you've uploaded the files. The installation process starts right away. Pick your language, click Next, choose your database server (MySQL), type in the server name (on paid hosts this should be localhost), and set the username and password of the admin that has access to the database server.

    The name of the database is the one we just created earlier, "hostname_users." The prefix of the table is already pre-set to "bfe_", so leave it that way. It's not going to overwrite any of the previous tables (if the database isn't empty), and you can use the database later on for other applications that require a database because there won't be any conflicts. This is the beauty of prefixes. Tick the box "create tables." You need them!

    Go to the next step and type in your directory to mount. This should be auto-detected, but do a second check. On paid hosts that use a shared server, this should be something along the lines of "/home/hostname/public_html". Move on to the next step. Recheck your settings and click on Install. Now you can see the progress of the install. At the end, pay attention to whether there are any "Failed" steps instead of "Done."

    As you can see from the above screen shot, it has passed everything (status is a green "Done" for each specific step). In case of failure, which you shouldn't get, it's written in a red "Failed" message. Now comes a part that you cannot neglect! You absolutely need to rename (I don't advocate deleting) the install folder to something like "install_backup," because otherwise the installation process always wants to start.

    After redirecting your browser to www.hostname.com/bfExplorer, you should get the following little PHP-generated login window on the center of an HTML page. Please be aware that the username and password are both "admin" at first. Don't forget to change this password as soon as you have logged in!

    Fortunately, you should log in without problems. Next, you will be welcomed by a simple, yet powerful MS Windows Explorer-like designfile manager. BfExplorer supports viewing and editing files, and GeSHi to highlight the source code of known languages; thanks to FCKEditor, it also sports a WYSIWYG-based HTML editor. It is able to provide compression and shell functionality. In short, it's extremely useful!

    In the next section, we'll see how to configure bfExplorer.

    More PHP Articles
    More By Barzan "Tony" Antal


       · Thanks for reading this article. I hope you have found it educational and...
     

       

    PHP ARTICLES

    - Setting Up a Web-based Image Hosting Service
    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway