homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Page Generating Script/Software?
need about 1,200 pages

 9:16 am on Oct 28, 2010 (gmt 0)

I surely would appreciate some help / direction wish a new project.

The project requires a script or software that will work from a list of URL's and generate a basic HTML page for each URL on the list ... with a few unique values .. then name the file something like "(unique1)-(unique2).php"

The page needs to look something like this:

<?php $name = "unique name";
$image = "unique.jpg";
$link = "unique url";
$location = "unique location";


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">



I need about 1,200 pages of of the above plus another 1,200 with other HTML tags:

<iframe src ="(unique1)-(unique2).htm" width="" height="">

I can do pretty much everything else with search and replace.

I have searched all over the web as best I know how and haven't found anything that looks like it will work.



 7:56 am on Nov 6, 2010 (gmt 0)

This looks something which can be accomplished with AWK. AWK is a streaming scripting language which takes an input file one line at the time and performs actions based on the contents of that line. I have generated files with it in the past.

What kind of input date are you expecting to use, are the unique words in a text file two words per line, or is there another format to process?


 10:58 am on Nov 6, 2010 (gmt 0)

The input data would be rows of:

<http://constant-url.com/unique-location/unique-id (for jpg and id)/stuff> - <Unique Name> - <Unique Location>

I can put that information in pretty much any order on the list.

Can AWK be run on my desktop?


 11:30 am on Nov 26, 2010 (gmt 0)

Sorry for not coming back earlier. Went to Pubcon and had a lot of things to do afterwards.

Awk can be run on a desktop. The GNU project made a gawk clone which is available as gawk.exe for Windows systems. With some searching you should be able to find a reliable download location for this executable.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved