Re: Question about cURL, and iFrames...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 19, 2008 9:44 AM, Jason Pruim <japruim@xxxxxxxxxx> 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); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux