Unlink .txt file every 2 hours

 

Results 1 to 11 of 11
I was looking at the PHP site and found the "unlink" script what I want ...
  1. #1
    AnonLeo is offline Registered Member
    Join Date
    Nov 2013
    Posts
    97
    Thanks
    84
    Thanked 15 Times in 4 Posts

    Exclamation Unlink .txt file every 2 hours

    I was looking at the PHP site and found the "unlink" script

    what I want is a time script to automatically unlink my "usernames.txt" file every 2 hours

    Is it possible to do that?

    Thanks




  2. #2
    bartosimpsonio's Avatar
    bartosimpsonio is offline U. B. Rich Soon
    Join Date
    Mar 2013
    Location
    Roaming BHW
    Posts
    4,455
    Thanks
    2,494
    Thanked 3,708 Times in 1,931 Posts

    Default Re: Unlink .txt file every 2 hours

    Yeah. Search for "cron" - you can customize the crontab to any period you want. Then a cron job can run your script every 2 hours.

  3. #3
    AnonLeo is offline Registered Member
    Join Date
    Nov 2013
    Posts
    97
    Thanks
    84
    Thanked 15 Times in 4 Posts

    Default Re: Unlink .txt file every 2 hours

    That's what they told me on Stackoverflow, but I don't understand the corn and how it works :/

  4. #4
    cr0n1k is offline Registered Member
    Join Date
    May 2010
    Location
    UK
    Posts
    72
    Thanks
    84
    Thanked 23 Times in 18 Posts

    Default Re: Unlink .txt file every 2 hours

    Quote Originally Posted by AnonLeo View Post
    That's what they told me on Stackoverflow, but I don't understand the corn and how it works :/
    there you go,is your best friend

    http://lmgtfy.com/?q=cron+tutorial+

  5. The Following User Says Thank You to cr0n1k For This Useful Post:

    AnonLeo (01-12-2014)

  6. #5
    mypmmail is offline Jr. VIP
    Join Date
    Jan 2008
    Posts
    110
    Thanks
    2
    Thanked 26 Times in 26 Posts

    Default Re: Unlink .txt file every 2 hours

    Just for your info.

    There is a slight difference between cron returned by google to the cron you implement on a shared hosting.

    Technically, there isn't a difference.
    But on shared hosting, you cannot access the shell directly, thus, you need to set the cron job through the cpanel or plesk, which is a more user friendly interface, to achieve the same result.
    Logically, the cpanel version is more user friendly, thus, if you master the command line version, the cpanel should not be a problem.

  7. The Following User Says Thank You to mypmmail For This Useful Post:

    AnonLeo (01-13-2014)

  8. #6
    AnonLeo is offline Registered Member
    Join Date
    Nov 2013
    Posts
    97
    Thanks
    84
    Thanked 15 Times in 4 Posts

    Default Re: Unlink .txt file every 2 hours

    I have a cpanel (VPS), I searched for "corn" and didn't find any results :/

  9. #7
    laowai's Avatar
    laowai is offline Regular Member
    Join Date
    Feb 2011
    Posts
    294
    Thanks
    336
    Thanked 110 Times in 91 Posts

    Default Re: Unlink .txt file every 2 hours

    Try to search "cron" not "corn" and you will find what you need

  10. The Following 2 Users Say Thank You to laowai For This Useful Post:

    akshdalal (03-10-2014), AnonLeo (01-13-2014)

  11. #8
    jazzc's Avatar
    jazzc is offline Programming & Web Design Moderator black hat forumsblack hat forumsblack hat forums
    Join Date
    Jan 2009
    Posts
    2,156
    Thanks
    5,958
    Thanked 6,859 Times in 2,423 Posts

    Default Re: Unlink .txt file every 2 hours

    Click image for larger version. 

Name:	Corn.jpg 
Views:	130 
Size:	42.5 KB 
ID:	44489

    .

  12. The Following 3 Users Say Thank You to jazzc For This Useful Post:

    akshdalal (03-10-2014), auxiliarus (03-27-2014), nesterdwarf (03-18-2014)

  13. #9
    netbull2007 is offline Newbies
    Join Date
    Mar 2014
    Posts
    8
    Thanks
    0
    Thanked 6 Times in 3 Posts

    Default Re: Unlink .txt file every 2 hours

    every cPanel supports cron jobs. this basicly is a program witch runs on specific time interval /you configurate that/ and run a php file with the unlick function.

  14. #10
    gtownfunk's Avatar
    gtownfunk is offline Jr. VIP
    Join Date
    Jan 2011
    Location
    Austin, TX
    Posts
    102
    Thanks
    7
    Thanked 23 Times in 17 Posts

    Default Re: Unlink .txt file every 2 hours

    Has anyone found the corn job yet? Poor guy is going to never be able to schedule a task without thinking about Nebraska...

    gtownfunk

  15. #11
    TorrentCoder is offline Newbies
    Join Date
    Feb 2014
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Unlink .txt file every 2 hours

    Quote Originally Posted by AnonLeo View Post
    I was looking at the PHP site and found the "unlink" script

    what I want is a time script to automatically unlink my "usernames.txt" file every 2 hours

    Is it possible to do that?

    Thanks

    Simply create a PHP file with the unlink method and set the cron as: 0 */2 * * * /path-to-php-file


Similar Threads

  1. How to unlink hostng from domain name?
    By 3dGrafix in forum Domain Names & Parking
    Replies: 6
    Last Post: 12-06-2012, 03:57 AM
  2. Replies: 2
    Last Post: 04-23-2011, 12:50 PM
  3. Brand NEW credit file in just 24 hours, plus $400/day
    By kelli912 in forum Affiliate Programs
    Replies: 0
    Last Post: 03-06-2008, 03:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

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




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108