/    Sign up×
Community /Pin to ProfileBookmark

Help with upload only folder

I have three things that I need help with. I just changed servers, and I forgot to keep some of my scripts and things, so I need help with a few basic things.

  • 1.

    I need help with scanning uploaded files to make sure that they are not infected.

  • 2.

    I need help with making a folder available for uploading only. I don’t want people to be able to download the files from the folder, only upload them.

  • 3.

    I need a script to copy files from one folder to another every 15 minutes or so. The script should check to make sure that the files are the same size once the file is copied, and if they are then delete the original file, if not then recopy the file and check size again. That should make sure that files which were being uploaded during the copying won’t be deleted until finished. (I need the script to transfer all of the files from one folder to another and then check each file for size and delete)

  • I got help on this forum once before with these things, but I can’t find the posts, and most scripts that I can find are not exactly what I want. That being said, I am not asking anyone to write complete scripts (unless you want to ? ), just show me examples for how to do certain parts of the scripts.

    Thanks in advance.

    Kon

    to post a comment
    PHP

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @SheldonOct 25.2005 — [url=http://php.inspire.net.nz/manual/en/function.move-uploaded-file.php]Move uploaded file[/url] will help with uploading and moving of the files, A virus scan script in PHP is something i dont no about.

    With making the the dir for upload access only all i can think of is putting a Relm on the dir with a .htacces file and sendign the username and password in with the form that uploads it to.
    ×

    Success!

    Help @konithomimo spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...