Advanced
Web File Editor 1.26
Description
Advanced Web
File Editor 1.26 is an extension of our Web File Editor 1.02. This version includes the
ability to edit in one directory, or in all subdirectories. You simply set the path,
select "Include Subdirectories" and the script will make the changes in every
file it finds, starting at the path you specify. It will tell you how many times the
replacement has been made, and how many directories and files it searched.
Search and replace easily from your browser!
This script is now able to use a list of files as well as the above methods. Set the path
to the directory these files are in, and put the files, seperated by commas, into the list
field. It will go through the list, ignoring those that don't actually exist, and editing
those that do.
Note: This script was recently tested using a directory containing
22,000 files. The results were that the script timed out after editing just over 11,000
files. There isn't much to be done about server timeouts from the client side... but
11,000 files in just a few minutes is not that shabby.
The
script was also recently used to replace one line
of code in over eight thousand pages, disabling the forms on these generated pages. The
task was completed in four and a half minutes.
For large sites
breaking the job up into manageable groups of files ( a few thousand ) should ensure that
no server timeouts occur.
To view an example script Click Here.
This script may not work on systems where scripts have limited permissions. HTML files
normally have permissions of 644 by default, and if scripts on your system are not running
as "user" they may not have sufficient permissions to edit such files. Scripts
running as "nobody" or the equivalent, will require files to be world writable (
chmod 666 ).
--> Download all of our programs
at the download page.
|