Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2012
    Posts
    36
    Thanks
    9
    Thanked 1 Time in 1 Post

    How to make a program that checks for a specific string?

    So, there's a computer science course that I want to get into in my school. Theres only a maximum of 35 spots and theres a website that displays the amount of people registered in it.

    On the page, there's no other instance of the number 35.

    So what I want to do is make a program that checks if the number 35 is still on the page. Wait like 2 mins, refreshes the page and then checks again.

    When there is no number 35, I want to be alerted (possibly by text message?) or by something else.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    You would need server-side coding to achieve this.

    Simply stated, the Same Origin Policy states that JavaScript code running on a web page may not interact with any resource not originating from the same web site.



    It is your responsibility to die() if necessary….. - PHP Manual

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

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