WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2007, 08:53 AM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default PHP File Browser

Does anyone know of a stand alone file browser for PHP, which would open in a pop up window from a form and allow the user to browse files in a directory and/or upload to that directory. When they select a file, it would then close the pop up window and return the selection to the relevant field in the form.

I've been searching around frantically and can't find anything. Looking for something similar in functionality to the TinyMCE Image Manager, only outside that application.

Any ideas greatly appreciated. Thanks.
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #2 (permalink)  
Old 03-27-2007, 09:14 AM
DaveSawers's Avatar
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 384
DaveSawers RepRank 1
Default

You don't have to use PHP to do this.

Simply use a <form> which includes an input type of file and you will get a browse button that allows you to use the appropriate operating system to find the directory/file on the client machine you want to upload or download to.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #3 (permalink)  
Old 03-27-2007, 11:46 AM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default

Hi Dave, problem is I want to let them browse and select existing files on the web server, not from their local machine. Unless I am missing a straight forward way to do this? Thanks.
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #4 (permalink)  
Old 03-27-2007, 04:27 PM
WebProWorld Pro
 

Join Date: Apr 2004
Posts: 288
imvain2 RepRank 0
Default

a quick google search for php file browser came up with many results, here is one:http://www.webfilebrowser.org. You may have to customize it for your needs though.
Reply With Quote
  #5 (permalink)  
Old 03-27-2007, 05:32 PM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default

After trying out a few PHP/Ajax, I've settled on this one, which just uses one PHP file.
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
  #6 (permalink)  
Old 03-27-2007, 09:55 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

You don't need a PHP script. Simply link to the directory without an index.html file and be sure the permissions for that directory are correct. This will allow browsing of the files as links. They can then be accessed and downloaded.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #7 (permalink)  
Old 03-28-2007, 08:46 AM
WebProWorld Member
 

Join Date: Feb 2007
Location: United Kingdom
Posts: 40
lala RepRank 0
Default

Hi Dave,

If you were to use a <FORM> tag, could you then display the choosen file in a new browser window?
That would be marvellous. How would you code this?

lala
Reply With Quote
  #8 (permalink)  
Old 03-28-2007, 09:12 AM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

I think he was talking about browsing your own computer from a form. When using the browse feature, a window opens on your computer to browse your files for selecting the one you want to upload to the site.

However, the original question involved browsing files on a site and then downloading to the visitor. Actually, browsers download files from a site automatically. If they didn't, you wouldn't be able to view the site.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #9 (permalink)  
Old 03-28-2007, 01:13 PM
thindenim's Avatar
WebProWorld Pro
 

Join Date: Jan 2007
Location: Scotland
Posts: 241
thindenim RepRank 1
Default

I decided to pay the 300 euros for the Enterprise Version of MCFileManager - from Moxicode.

To clarify exactly what the purpose/implementation of this is: -

In an admin centre for a site I am working on, some of the input fields are for images/audio/other media files. I could have just done a simple file upload, but wanted to allow them to browse and preview existing files on the server and either select one of these, or alternatively upload new files and/or create new remote directories. The MCFileManager does all this perfectly and is seamlessly integrated into my admin system.
__________________
Girlz Night - professional hair and beauty products
Web design glasgow - from Thin Denim
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0