Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7

Thread: PHP tasks

  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default PHP tasks

    Hello PHP coders,

    I am looking for a function/addon to PHP to do PHP tasks, I want it to be so at X time a PHP task is done. (Ap doesnt have to be run)

    Can anyone guide me in the right direction?

    Thanks dudes,
    Danny

  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Use cron jobs.

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    If your a cpanel user, it may be possible to use the cron jobs to run a script at a timed interval.

    If nott, the best way to acompish this is to run a script to check if its pasted a certain time and whether its been run, each page load, depending on the activty of the site, the more acureretyly it would find out and run the code you wanted. At least thinking of the top of my head

  4. #4
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Yes I googled that before I posted, is that PHP or is it shell?

    EDIT: Thanks mentor, I will have a go!
    Last edited by Luckyrare; 02-05-2006 at 07:32 PM.

  5. #5
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare
    Yes I googled that before I posted, is that PHP or is it shell?

    EDIT: Thanks mentor, I will have a go!
    All you need to do is type the name of the script you want to run and when you want to run it. Its quite simple really.

  6. #6
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    Quote Originally Posted by 01101101entor
    If your a cpanel user, it may be possible to use the cron jobs to run a script at a timed interval.
    And even if ur not using cpanel u can use cron jobs, as its apart of the OS

    Anyway,
    I would say Make the script u want to run, then make it run by a cron script

  7. #7
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Eric30
    And even if ur not using cpanel u can use cron jobs, as its apart of the OS

    Anyway,
    I would say Make the script u want to run, then make it run by a cron script
    Yea, unlikcly most people Dont have any access to the actal O/S there server is running on thogh do they, Only to what ever control panel is provided to be able to interact with the software and in turn the operating system.

    Also, Not every server runs the same O/S do they, so cron jobs aint avaible everywhere ya know...

Posting Permissions

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