Re: Uncharted territory

by "Octavian Rasnita" <orasnita(at)home.ro>

 Date:  Fri, 9 May 2003 19:14:28 +0300
 To:  "cbirds" <cbirds(at)earthlink.net>,
"HWG" <hwg-techniques(at)mail.hwg.org>
 References:  hwg
  todo: View Thread, Original
You could use perl or PHP, and MySQL as a database, or store the articles in
simple text files.
Give a name to your current article and your perl program will associate an
ID for the text of that article and for its name.
The links to an article would be something like:

http://www.site.com/cgi-bin/article.pl?id=123

123 is the id of an article.

The program article.pl could query a MySQL database and get that article, or
get it from a text file named 123.txt, parse the text from that file or
database record and change each end of line with <br /> etc., then it
displays the result on the browser.

When you submit the article to the site you can use another perl program
that can put it in the database, or create a text file, and that program
also needs to create an HTML page that have links like:

<a href="/cgi-bin/article.pl?id=$id">$description</a>

where $id is the ID chosen for that article in order or randomnly, and
$description is the title of that article chosen by you...

But you need to know perl, PHP, ASP, Cold Fusion or other programming
languages that can do this.




Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: orasnita(at)home.ro

----- Original Message -----
From: "cbirds" <cbirds(at)earthlink.net>
To: "HWG" <hwg-techniques(at)mail.hwg.org>
Sent: Friday, May 09, 2003 10:01 AM
Subject: Uncharted territory


I am doing a newspaper type site and want to know how I can add articles
to a templated 'article' page by simply  uploading the content and
letting the user click on the link which will then create the page with
the correct article in it, using the template?

I know this is some sort of scripting, but what, how, can this be done
with the ordinary services  of php, pl, or what have you?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA