Re: [PHP] Using Curl to replicate a site

2009-12-11 Thread Ashley Sheridan
On Thu, 2009-12-10 at 16:25 +, Ashley Sheridan wrote: > On Thu, 2009-12-10 at 11:25 -0500, Robert Cummings wrote: > > > Joseph Thayne wrote: > > > If the site can be a few minutes behind, (say 15-30 minutes), then what > > > I recommend is to create a caching script that will update the nece

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 11:25 -0500, Robert Cummings wrote: > Joseph Thayne wrote: > > If the site can be a few minutes behind, (say 15-30 minutes), then what > > I recommend is to create a caching script that will update the necessary > > files if the md5 checksum has changed at all (or a specifi

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Joseph Thayne wrote: If the site can be a few minutes behind, (say 15-30 minutes), then what I recommend is to create a caching script that will update the necessary files if the md5 checksum has changed at all (or a specified time period has past). Then store those files locally, and run loca

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2009-12-10 at 11:10 -0500, Robert Cummings wrote: Ashley Sheridan wrote: > Hi, > > I need to replicate a site on another domain, and in this case, an > iframe won't really do, as I need to remove some of the graphics, etc > around the content. The owner of the si

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Joseph Thayne
If the site can be a few minutes behind, (say 15-30 minutes), then what I recommend is to create a caching script that will update the necessary files if the md5 checksum has changed at all (or a specified time period has past). Then store those files locally, and run local copies of the files

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 11:10 -0500, Robert Cummings wrote: > Ashley Sheridan wrote: > > Hi, > > > > I need to replicate a site on another domain, and in this case, an > > iframe won't really do, as I need to remove some of the graphics, etc > > around the content. The owner of the site I'm needing

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: Hi, I need to replicate a site on another domain, and in this case, an iframe won't really do, as I need to remove some of the graphics, etc around the content. The owner of the site I'm needing to copy has asked for the site to be duplicated, and unfortunately in this cas

Re: [PHP] using CURL or something similar to click on a link

2007-06-25 Thread Robert Cummings
On Mon, 2007-06-25 at 19:01 -0700, Siavash Miri wrote: > Hi All, > > > I just recently started writing a php script that would get some search > results from some other sites and display them. > > I believe the only php way to do this is using CURL. am I correct?? or is > there a more efficient

Re: [PHP] using curl to get part of the html

2002-10-25 Thread Marek Kilimajer
You have the page in $result, so you need $result=explode("\n",$result), and echo $result[0] - [99] Patrick Hsieh wrote: Hello list, I am writing a php script to fetch a html page and verify its content which generated by a remote cgi program. The special cgi program generates endless content

Re: [PHP] using CURL to post data to a search engine

2002-09-27 Thread Chris Shiflett
Google uses GET anyway, not POST. A simple fopen() is all you need, but then you'll be parsing HTML. The API is better for reliability. Paul Nicholson wrote: >I don't think you'll get php to work with google unless you use the google >api - I heard that google has filtered out the php(and oth

Re: [PHP] using CURL to post data to a search engine

2002-09-27 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I don't think you'll get php to work with google unless you use the google api - I heard that google has filtered out the php(and others) user-agent. If you need more info on the google api just let me know. ~Pauly On Friday 27 September 2002 0

RE: [PHP] Using cURL

2002-08-30 Thread Jonathan Rosenberg
Can you telnet/SSH to the machine & install CURL in your home directory? You shouldn't have to be root to do this. Or, are you trying to get CURL loaded into PHP? -- JR > -Original Message- > From: Henry [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 30, 2002 2:21 AM > To: [EMAIL PRO