Results 1 to 2 of 2

Thread: Protect a file

  1. #1
    Join Date
    Jan 2010
    Posts
    7

    Post Protect a file

    Hey pros ;P

    I'm about to build a site where you can buy files and then download them to your computer.

    To do that, the files has to lay on the ftp. The problem is now that, everyone who knows the right path can go and fetch that file. How do you protect it, so that you cannot acces it, directly. Only the php part of my site can?


    /Dorphern

  2. #2
    Join Date
    Jan 2010
    Posts
    7
    Hehe, no need to answer found the solution by my self.

    You just set CHMOD on a folder to 644 (don't allow public) and then acces it via. PHP, buy fx including it :-)

Similar Threads

  1. Make a single FLV player to play several videos with playlist
    By jenniferrung in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 11 Dec 2009, 12:48 AM
  2. Import hundreds of SkypeOut contacts from a CSV file
    By chilopod in forum Freelancing
    Replies: 0
    Last Post: 14 Mar 2008, 02:23 AM
  3. Access external CSS file from PHP file?
    By web88js in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 08 Dec 2007, 07:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •