+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Little script

  1. #1
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    http checker

    EDIT: Source Removed!

    EDIT: The script is supposed to check if http is running(Requires Cron, Not important here though), if it isnt running, a counter is created on the file offline.txt. If the counter hits 5 it emails the user. If the number is bigger than 5, offline.txt auto resets.

    EDIT: The script posted above is correct! It works fine
    Last edited by TarinC; 08-11-2006 at 01:14 AM.

  2. #2
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: Little script

    bump?

  3. #3
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Little script

    darn...i'm sorry if only i was good in PHP, i could probably find the error in a second but i don't fully understand it..sorry

    edit-i'm just guessing but maybe cuz you never defined 'online'
    Last edited by Chris Z; 08-10-2006 at 10:22 PM.
    -Chris Z
    Retired Account Manager


  4. #4
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: Little script

    well can you describe what happens when you run the script. as i can't run it because you have made functions that i don't have to help test it with

    also what does this script do. i think i have a general idea but...
    Last edited by Chris S; 08-10-2006 at 10:24 PM.

    I would love to change the world, but they won't give me the source code

  5. #5
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: Little script

    Sorry.. i added the wrong function. i edited the first post to include the new code and what its supposed to do.
    Last edited by TarinC; 08-10-2006 at 10:29 PM.

  6. #6
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Little script

    wouldn't this just be easier if you basically said..."check this page, if it's not up then say http is offline"?
    -Chris Z
    Retired Account Manager


  7. #7
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: Little script

    well yes it is much easier but corey wanted some volenteers to notify him that http is down, this way, even if ur not on the server or visiting a site u will be emailed that http is down.
    here is the thread: http://forums.x10hosting.com/showthread.php?t=18329

  8. #8
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Little script

    oh ya...i guess that is a good idea, but i though bryon or corey would be creating it lol oh well...that's ok umm well it could still do that, just check a site that's up a lot, i could volunteer my site (http://cgz09.com) to be the site it checks so we could still do my idea though, right, and still get emailed somehow?
    -Chris Z
    Retired Account Manager


  9. #9
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: Little script

    A friend helped me out on the source. i edited the first post with the new source. it works! thanks for helping!

  10. #10
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Little script

    can you make it for multiple users? (emails)
    -Chris Z
    Retired Account Manager


+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Looking for a PTR Script
    By ƒorte in forum Off Topic
    Replies: 8
    Last Post: 05-08-2006, 08:25 PM
  2. Server UP time Script
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 04-03-2006, 04:39 PM
  3. Just a question about my script
    By rubens in forum Free Hosting
    Replies: 11
    Last Post: 02-28-2006, 01:41 PM
  4. Sign up script
    By Nate_Benton in forum News and Announcements
    Replies: 6
    Last Post: 10-03-2005, 06:32 PM
  5. CGI - script, Advertisement _HELP.
    By kaliforna in forum Free Hosting
    Replies: 12
    Last Post: 06-02-2005, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers