sc****@comcast.net (Steve High) wrote in message news:<52**************************@posting.google. com>...
I'm working on an app where a page is created dynamically via a CMS,
and I need to save the page similar to the way you can save a
'complete web page' via a browser. I need to save the graphics,
links, embedded applets, flash, etc.
Is there any way that I can use native PHP code to 'capture' the web
page and maintain the functionality of the page?
Hmmm. I figured out how to do it...so i will post here in case anyone
else has the same problem.
I used cURL to grab the url as a file stream, then parsed the
<object>, <img>, and <applet> tags to look for the source. I then
created a dynamic 'images' directory and an 'objects' directory where
the images, swfs, and applet jars are stored.
Then i replaced the source in the file stream to point to my new
directories. Finally, i bundled the files and folders with php
compression utility to make one zip-readable file...
it's a lot of jerry-rigging, but it works pretty well.
anyone interested in the source should email me.