943,791 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 603
  • PHP RSS
Jan 19th, 2008
0

Ftp

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cente is offline Offline
16 posts
since Oct 2007
Apr 3rd, 2008
0

Re: Ftp

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.
Reputation Points: 27
Solved Threads: 16
Junior Poster
petr.pavel is offline Offline
116 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: MySql Stored procedure
Next Thread in PHP Forum Timeline: Replacing return() function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC