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 necessary

[PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
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 case, because of the CMS

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

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 to copy

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

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 site

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

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 specified

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

2007-06-25 Thread Siavash Miri
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 way to do this? Anyways, i got it working fine with curl, except

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 way to

[PHP] using curl to peform post

2005-12-04 Thread Brent Clark
Hi all I have need to simulate the role of a web browser by submitting the following code. form name=form1 action=propsearch.pl method=post textarea rows=12 cols=70 name=msgGREENc/textarea input type=submit value=Submit /form Heres my PHP code that got from the curl function. ?php $url =

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

[PHP] using curl to get part of the html

2002-10-24 Thread Patrick Hsieh
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 to the http client. Therefore, I need to figure out a solution for curl to fetch part of the html source code(In fact, I

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

2002-09-27 Thread rdkurth
I am trying to use curl to post data to a search engine and then return the results in a variable so I can manipulate it. I have tried this but it does not seam to work properly. This is just an example of how I am trying to do this I don't have to use google for the search engine just

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

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

RE: [PHP] Using cURL

2002-08-30 Thread Jonathan Rosenberg
PROTECTED] Subject: [PHP] Using cURL Dear All, I'm using a shared server hosted by an ISP. I cannot get PHP recompiled with --with-curl. I've read the information about cURL but it appears that I need to be root in order to install it? I cannot do this. Does this mean that I cannot use cURL

[PHP] Using cURL

2002-08-29 Thread Henry
Dear All, I'm using a shared server hosted by an ISP. I cannot get PHP recompiled with --with-curl. I've read the information about cURL but it appears that I need to be root in order to install it? I cannot do this. Does this mean that I cannot use cURL or CURL at all? If it doesn't what do I

[PHP] Using cURL on windows?

2001-08-17 Thread Brandon Orther
Hello, How would I go about installing cURL for PHP on windows box?