Jump to content

setting up a time for unlink?


xcoderx

Recommended Posts

a very simple way would be using AJAX (jQuery/MooTools) .. with AJAX, you can set a timer to execute a file of your choice asynchronously on the server.  that file could be to delete a file, or whatever you like.

 

it could work like such:  person reaches link/page; countdown timer commences; 0 is reached, AJAX runs unlink.php?file=file_to_be_removed.txt;

 

i have no idea how your system is setup, but anytime you are dealing with deleting files, etc., security is crucial.

Link to comment
Share on other sites

daniel bro with @ i get Warning: Unexpected character in input: ''' (ASCII=39) state=1 in

 

at is a unix command. Like this:

daniel@daniel-laptop:~$ at -h
Usage: at [-V] [-q x] [-f file] [-mldbv] timespec ...
       at [-V] [-q x] [-f file] [-mldbv] -t time
       at -c job ...
       atq [-V] [-q x]
       atrm [-V] job ...
       batch

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.