View Full Version : Need a tool to generate several text files in batch
01-26-2004, 07:18 AM
I often need to create several HMTL documents that have only slight differences. For example, 50 needed files may all need to be identical other than the file name and a couple of field names. All of the different items can be simply numerically incremented, so I figure that there has to be an application available to enter my static data, give it some rules for the dynamic fields, and push a button to have 50 files generated.
Anyone heard of such an animal? Any help will be greatly appreciated.
01-26-2004, 12:37 PM
you want to use php my friend...
(or ASP or some other kind of server side langauge)
Here's a nice simple example to display a name and a photo depending on what info is passed via the url:
print('Picture of '.$name.'<br>');
print('<img src="'.$pic.'" alt="'.$name.'">');
Then the page can display different images by being called like so:
01-26-2004, 03:46 PM
Thanks for the suggestion (and the code snippet), but right now - I would just prefer to find a tool to generate these pages for me.
Maybe next time I'll take the time to setup PHP.
02-05-2004, 06:33 PM
I agree with sweenster, but I also understand that investing time and effort into learning asp or php to only make 50 pages might not make since.
One idea would be to make the first page and copy it. On the copy use the 'find & replace' option found in most editors (I use Crimson Editor) to make the changes needed.
If you want to try a macro tool I recomend EZmacro.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.