20
July
Written by Nathan Schloss.
Posted in:
DOWNLOAD THIS SCRIPT
See an example of this script at http://wpd.nate.co.il/.
License- http://creativecommons.org/licenses/by-sa/3.0/us/
Description
This script will let people who visit your site download a webpage and save it as a .doc or .html file. .html files
can be save with or without images.
**Installation**
1)Open index.php in a text editor.
2)Edit the variables $wpdname and $wpdurl.
3)Save the file
4)Upload all of the files except for ReadMe.txt and License.txt to the directory where you would like your
webpage downloader to reside.
4) Chmod /doc/temp to 666.
Notes
A) I left space in the code to at support for PDF file genration, you can add it on your own if you would like but you
will need a method of converting HTML to PDF. I would reccomend using http://www.phpclasses.org/browse/package/2905.html.
B) You may not remove the link back to naterocks.com from this script.
C) This script uses the “HTML to DOC” class by Harish Chauhan more about it can be found
at http://www.phpclasses.org/browse/package/2763.html.
DOWNLOAD THIS SCRIPT
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Continuing the Discussion
-
Nate’s blog » WebPage Downloader
[...] just made the source for the WebPage Downloader public, you can get it from http://naterocks.com/php-coding/webpage-downloader/. No [...]
July 20, 200911:02 pm