1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

⛔ is there any way to visit a website anytime error.log is edited?

Discussion in 'Programming' started by mydig, Sep 5, 2019.

  1. #1
    Hi I am wonder if there is any way to ping a website or send an email or notification to owner anytime the error.log file is edited?

    I was hoping to find a php scrip which I can run periodically in my cron jobs and the php would send an email if the file has gotten bigger. Does anyone know of anything like this?
     
    mydig, Sep 5, 2019 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #2
    It wouldn't be hard to write, you just need a separate file to store the file size each time it's checked.
     
    sarahk, Sep 5, 2019 IP
  3. mydig

    mydig Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Having and extra file would be a problem. Can you point me somewhere where I could start? Total php newbie but willing to learn
     
    mydig, Sep 5, 2019 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Really?
    https://www.php.net/manual/en/ref.dir.php

    get the contents of the directory, check the size, send an email if it's changed
     
    sarahk, Sep 6, 2019 IP
  5. mydig

    mydig Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Uuups sorry would NOT be a problem lol. Yea I have plenty of space
     
    mydig, Sep 6, 2019 IP