Re: saving outside website content via php...

From: Date: Sun, 01 Jun 2008 15:23:33 +0000
Subject: Re: saving outside website content via php...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274910@lists.php.net to get a copy of this message
Gabriel Sosa wrote:
why no just save the searhed url in a db field. next time you just need call the iframe with the last or N search anyway if you still want to save all the searched page try using curl http://ar.php.net/manual/en/function.curl-exec.php saludos On Sat, May 31, 2008 at 8:11 PM, blackwater dev <blackwaterdev@gmail.com> wrote:
I'm using the google api to allow people to search the web via my site. The pages are simply iframed within my site. Is it possible for me to give them a 'save' button and let them save the page they are viewing in it's current state? I don't mean save to their computer but I would use php to save it to disk or the db. How can I do this and pull in all the css, images, etc? Thanks!
Or if you don't have access to curl, you can use file_get_contents() on a URL if allow_url_fopen=on. -Shawn

« previous php.general (#274910) next »