Add Comment
|
Related Links
|
TrackBack
WebCopy.php (GPL)WebCopy.php is another one of those scripts that I had to rewrite, because my original Java version (see elsewhere on this site) doesn't run on the new web hosting service. WebCopy.php is a PHP command-line script that helps you copy a web page to a local file. It only accepts two parameters: 1) the URL; and 2) the file name. Unlike the Java implementation, this implementation of WebCopy over-writes the file if it exists. I've been debating back-and-forth when I use the Java version, whether it's better to over-write or better to report and exit. We'll try it the other way with this PHP script and see how it goes. WebCopy.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. Chieh Cheng The previous version of WebCopy.php has trouble downloading some web pages. Attached to this message is a new, updated version of WebCopy.php that fixed that bug. Chieh Cheng Previous versions of WebCopy.php has a limit on the size of the web page you download. On my computer, that limit was just over 8 megabytes. I've now modified WebCopy.php so that there is no limit. With this latest version of WebCopy.php, you can download any sized web pages. The file size is only limited by the hard drive partition format. For example, FAT32's file size limit is 2 GB. Chieh Cheng In this latest version of WebCopy.php, I've made slight optimization so that the output file doesn't have to be reopened every time the read buffer is full. It should speed it up slightly and use your disk a little less. Chieh Cheng The original intent of WebCopy.php is to over-write files that exist. However, a small bug was introduced in previous version(s) where data is appended to existing files. This version of WebCopy.php fixes that bug. Chieh Cheng The usage message is improved in this version of WebCopy.php to explain difference in PHP 4 versus PHP 5. Basically in PHP 4, the download file is saved in the directory where WebCopy.php resides. On the other hand, in PHP 5, the download file is saved in the current directory, where WebCopy.php is executed. Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control Title: WebCopy (Freeware) Add CommentSpam Control | * indicates required field Messages, files, and images copyright by respective owners. |
Products
|
Services
57 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |