curl-and-php
RE: displaying results from curl
Date: Thu, 11 Dec 2003 11:00:52 +1100
Content-Transfer-Encoding: 7bit
Why not reload the page every X-seconds via a metatag (add it between the <Head></head> tags in your HTML)
<META HTTP-EQUIV=Refresh CONTENT="1200; URL=/your_path_here/script.php">
In your code, have curl request the page and print the data.. thats it!
No need to have curl sitting there in a loop! That way curl only makes a single page request.. exits and prints the data..
Then X seconds later the page is reloaded and the new data is displayed..
Otherwise your content will just keep appending to the same page..
with the connection kept open the whole time.. not particularly nice!
Mark
_____
From: curl-and-php-admin_at_lists.sourceforge.net [mailto:curl-and-php-admin_at_lists.sourceforge.net] On Behalf Of TQatSJU_at_aol.com
Sent: Thursday, 11 December 2003 10:34 AM
To: curl-and-php_at_lists.sourceforge.net
Subject: Re: displaying results from curl
i already use that, i get what curl returns in a string which is fine, i just have the same curl request in a loop over and over
again and i'm looking to only print the html it returns on one page over and over again, rather then having it overlap...
*********************************************************************
This email and any files transmitted with it may be confidential and
privileged. It is intended solely for the use of the individual or
parties to whom it is addressed. If you have received this email in
error please forward it to postmaster_at_dingoblue.com.au and delete all
copies of this message immediately. Thank you.
*********************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-11