Key features:
To use the new auto update features in this version, add the comments:
<!-- lastupdate_date --> immediately followed by a yyyy-mm-dd formatted date
<!-- lastupdate_time --> immediately followed by a hh:mm:ss.
With the new script, any file ending with ".html" is scanned, line by line, for
any occurrence of the above listed comments. If it finds them, it replaces whatever follows those comments
with the time or date of the file (this is the reason you need to place those extra characters after the comments).
For a real-life demonstration, check the HTML source for this page. The date and time found at the bottom of
this page is generated with the script.
Requirements:
Exciting news: Okey, maybe not exciting, but news none the less - I successfully ran the script (not V2) on a friends Windows2k system which had IBM Object Rexx installed! (I didn't need to modify the script).
Nota bene
Since the script doesn't use any database files, but rather gathers all data it needs each time it is invoked, the
script is only usable for personal home pages. I don't recommend anyone try to upload a major web site using the
script.
Before you use it, you will need to configure the script. Change the FTP server address, user name and password.
In addition, the output from your ISP's FTP server may not look as the output my isp's, so you may have to hack
the parsing routines; a task which isn't hard, but can be very tricky if you have no Rexx/programming experience.
As time permits, I can try to help those of you who would like help reconfiguring the script.
In the future, I will make it more modular so configuration for other server output's will be much easier.
Another nota bene is that I haven't tried it much; I don't know how well it works. It's more fun that way. :-)
To Rexx gurus: Ugh! Me native tongue not Rexx. Me speak normally C/C++. Optimize - do yes, complain - please no.
Here's the first version/revision script. (updated 2000-07-01)
Version2 is in the works, it requires ObjectRexx, but it can automatically
update the 'last updated' information in your html scripts.