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!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Cron Job Help

  1. #11
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare View Post
    Why would it have to be in public_html? One of my servers is on /www/
    yes but the code florX posted says public_html in it he may not have changed it.

    Oo. i think i quoted the wrong comment
    Looking for a good desiner to design a social networking template.

    PM me.

  2. #12
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    php -f /path/to/file.php

  3. #13
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    The File is in public_html/Panel/test.php

    In responce to FlorX i changed the times to run a minute after


  4. #14
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    public_html and www are the same. Doesnt cpanel set you a cron up anymore?

  5. #15
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    None of the codes that have been posted so far work.
    Any more or have an ideas why they don't work


  6. #16
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Use cpanel for when you run it and my code, it works because I use it myself for my own cronjob.

  7. #17
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    php -f /home/habbocou/www/Panel/test.php

    That then?


  8. #18
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Yes, assuming you have cpanel, add it in there, use the basic view and not the advanced view when you click cron jobs. That way you can set the time easily.

  9. #19
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    I'm beginning to sound a real noob now. It still won't work.
    Any ideas.

    The File i want it to run is below
    PHP Code:
    <?php
    include("config.php");

    mysql_query("TRUNCATE TABLE table");
    $query mysql_query("SELECT * FROM `staff` ORDER BY RAND() LIMIT 3") or die('Could not delete request: '.mysql_error());
    while (
    $view mysql_fetch_array($query)) { 
    mysql_query("INSERT INTO `table` (`name`, `day`) VALUES ('{$view["username"]}', '$numday')") or die ("Error");
    }
    mail("[email protected]""Cron Sucessful""The Cron Job was Sucessful");
    ?>


  10. #20
    ScottDiamond Guest

    Default

    Quote Originally Posted by Randomer View Post
    might have something to do with the file not being in public_html?
    I'm going to remind you what Heinous said to you earlier. Log the hell out. Now.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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