Re: Question about cURL, and iFrames...
| From: | Daniel Brown | Date: | Tue, 19 Feb 2008 15:31:49 +0000 |
| Subject: | Re: Question about cURL, and iFrames... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269626@lists.php.net to get a copy of this message | ||
On Feb 19, 2008 9:44 AM, Jason Pruim <japruim@raoset.com> wrote:
> Hey Dan,
>
> Thanks for the response. Do you think that there is a better way to
> pull in another webpage other then curl? I mean, could I simply
> include 'HTTP://www.mykillersite.com'; and have all the link work?
> I'll have to try that in a little bit when I get some development time
> and see how it works...
You could include, file_get_contents(), implode(), et cetera, but
the links will only work on your local site if a variety of conditions
are true. Including:
a.) Relative linking
b.) Non-protected content
c.) Static content or dynamic content that does not rely on a
private database
d.) ....
You can preg_replace() the '/href="(.*)"/Ui' tags, but then
matching conditions and writing out everything to expect (or not to
expect) may be going beyond the scope of what you're trying to do. I
don't know.... I just read the end of the thread myself.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>