PHP Gurus...

Discussion in 'OT Technology' started by Sexual Vanilla, Sep 19, 2007.

  1. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina
    My boss wants me to put together a quick and dirty online file repository for the office that is to be protected by login credentials. Basically he wants to be able to upload documents (.doc, .pdf, .txt, etc.), and be able to search through them once they are uploaded with the option to download them again. I have the login and session scripts working fine. Now, I just need the upload/search/download scripts.

    How difficult will this be? I've never played much with file uploading in PHP, so I'm a n00b when it comes to this. How will I go about allowing the upload, then being able to have the user search through available documents to download?

    Any pointers or assistance to get me going in the right direction will be appreciated! :bigthumb:
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
  3. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina
    Ok...he wants the files to be uploaded on another hard drive attached to the computer (the root folder is located on the C: Drive...he wants the documents stored on the D: drive). Where/how do I specify the location of where I intended on placing the recently uploaded file?
     
  4. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    By specifying the D drive as the root directory instead of the C drive.
     
  5. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina
    Does that mean I'll have to move the scripts over to d: as well? I'm running XAMPP and I currently have the scripts at c:/xampp/htdocs.
     
  6. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina
  7. sixf00t4

    sixf00t4 New Member

    Joined:
    Sep 19, 2007
    Messages:
    25
    Likes Received:
    0
    you could have saved yourself a lot of work and just used the ftp feature in IE, directory indexing in Apache, and .htaccess login.
     
  8. Sexual Vanilla

    Sexual Vanilla New Member

    Joined:
    May 23, 2005
    Messages:
    6,305
    Likes Received:
    0
    Location:
    South Carolina
    Perhaps...however it was also pretty simple this way.
     

Share This Page