Search found 4 matches

by rishid
Thu Jun 24, 2004 6:24 pm
Forum: PHP - Code
Topic: Refresh Page until...
Replies: 6
Views: 832

Um.. all I know is that the first time you visit the page ever, it sets a cookie and then if you visit the page again, I am guessing it checks for that cookie and if it exists, displays a different page. Kind of like logging into an account at a website.
by rishid
Thu Jun 24, 2004 5:14 pm
Forum: PHP - Code
Topic: Refresh Page until...
Replies: 6
Views: 832

I got almost everything working, only problem is the site sets a cookie on the first time you visit the page. So I tried to use curl's cookie functions to emulate this sending of the cookie back to the server but isn't working. Not sure if I am even using it right. Here is the code, thanks for your ...
by rishid
Thu Jun 24, 2004 8:02 am
Forum: PHP - Code
Topic: Refresh Page until...
Replies: 6
Views: 832

Does this look somewhat right? One thing I couldn't figure out was how to show the webpage inside the IF statement? Is echo $tmp correct? Don't have PHP installed on this computer just yet, so will test it soon. <?php $ch = curl_init("http://www.example.com/"); $fp = fopen("example_ho...
by rishid
Thu Jun 24, 2004 7:26 am
Forum: PHP - Code
Topic: Refresh Page until...
Replies: 6
Views: 832

Refresh Page until...

Hello, I am trying to parse a PHP page for a specific String, and if it exists stop refreshing. If it does not exist, refresh X seconds. Anything like this possible in PHP? The page I am parsing is located on another server, so I would probably Include that into this page first. Any ideas on how to ...