Ftp

Reply

Join Date: Oct 2007
Posts: 16
Reputation: Cente is an unknown quantity at this point 
Solved Threads: 0
Cente Cente is offline Offline
Newbie Poster

Ftp

 
0
  #1
Jan 19th, 2008
I need help I want to develop in php code to redirect the browser to one specific folder (FTP) using password upon login in that folder only that folder they can access.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 100
Reputation: petr.pavel is an unknown quantity at this point 
Solved Threads: 14
petr.pavel's Avatar
petr.pavel petr.pavel is offline Offline
Junior Poster

Re: Ftp

 
0
  #2
Apr 3rd, 2008
Hi Cente, I got a bit lost in your description but here're my five cents:
  • to redirect a browser to FTP use header("Location: ftp://example.com/directory/file"); . It's the same as with HTTP.
  • URL that contains username and password looks like this: ftp://user:password@example.com/directory/file
  • To assign privileges to an FTP account (e.g. to have access to a single directory only) you have to use your webhosting control panel. Or edit your FTP server's configuration, in case you're running your own box. If you want to lock an FTP user in a subdirectory so that he cannot get out of it through ".." you're looking for a chroot option.
Petr 'PePa' Pavel

The more information you give the more relevant answer you get.
Please consider using "Add to ... Reputation" and mark your thread as Solved if you found what you were looking for. By giving feedback you help others.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC