Hi, my second question:

How can I use PHP to connect to another site and download the page contents? I want to suck out a portion of a web page and extract just the useful part. Also, I want to write a test suite that exercises my own website.

I used to know this, but I forget the key word: something like devil or lamp?

    IronGiant wrote:

    Hi, my second question:

    How can I use PHP to connect to another site and download the page contents? I want to suck out a portion of a web page and extract just the useful part. Also, I want to write a test suite that exercises my own website.

    I used to know this, but I forget the key word: something like devil or lamp?

    I guess it's curl I need, so I enabled my local PHP installation (in WAMP) to use Curl.

      You may be able to just use [man]file_get_contents/man if the fopen wrappers have been enabled.

        Write a Reply...