Re: saving outside website content via php...
| From: | blackwater dev | Date: | Mon, 02 Jun 2008 02:26:18 +0000 |
| Subject: | Re: saving outside website content via php... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274916@lists.php.net to get a copy of this message | ||
Yes, but file_get_contents will get me the code which I could then echo back
out to the browser but that wouldn't give me any external images, css files
or js.
On Sun, Jun 1, 2008 at 11:23 AM, Shawn McKenzie <nospam@mckenzies.net>
wrote:
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>