Welcome to WebmasterWorld Guest from 54.197.94.141

Forum Moderators: phranque

Message Too Old, No Replies

Page Generating Script/Software?

need about 1,200 pages

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

WebmasterWorld Senior Member 10+ Year Member



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">
<html>
<head>

</head>
<body>

</body>
</html>


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="">
</iframe>


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)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.