Re: Question about cURL, and iFrames...
| From: | Jason Pruim | Date: | Tue, 19 Feb 2008 14:44:39 +0000 |
| Subject: | Re: Question about cURL, and iFrames... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269618@lists.php.net to get a copy of this message | ||
On Feb 18, 2008, at 9:19 AM, Dan Joseph wrote:
On Feb 15, 2008 9:43 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... -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comI am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by going to 1 webpage (Think RSS for the entire website) have all the links work properly, login to the pages etc. etc. etc. I think I can do this with cURL which can pull the page in and display it properly, but I'm wondering if I should be displaying in an iFrame to keep my navigation links at the top to go around my site?Well, I think the short answer to that is Yes, curl can do what you want. You could pull in the page with curl, then go thru it and populate form fields, then display it. You wouldn't need an iframe, you'd just pull it in with curl, run thru and populate the fields, then display the finished product on the screen. One thing you may also want to keep in mind is that I think you'd have to go through and fix the image links and url links if they don't have the full url path in the html.