PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > automatically create multiple web pages
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
automatically create multiple web pages

Réponse
 
LinkBack Outils de la discussion
Vieux 23/04/2008, 17h48   #1
larryawade@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut automatically create multiple web pages

I need the ability to automate the creation of 500 similar webpages
for an educational site. Let’s say approximately 100 lessons with
each lesson having 3-5 pages. I already have a program that allows me
to create a template and merge in files. The body of each webpage
will include a line of text and a picture.

Let’s say I will have a Folder on my computer called Text with files
called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,…etc. Then a similar Folder
for the Images – Image1a.jpg, Image1b.jpg,…etc.

Is there a program or routine that can go through the Text folder and
create a file for each entry. Let’s say the files that are created
are called Lesson1a.it, Lesson1b,it,…etc. The program or routine
would create file with contents like:

<p align="center"><font size="6">Lesson1a.txt</font></p> (The routine
would need to place the contents of Lesson1a.txt into the file.)

<img src="Lesson1a.jpg" alt="" border="0" width="180"> (The routine
would need to place the text “Lesson1a.jpg” into the file.)

It would then create the Lesson1a.it file and then continue on for
each file entry in the Folder.
  Réponse avec citation
Vieux 23/04/2008, 18h44   #2
Ben Bacarisse
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: automatically create multiple web pages

larryawade@gmail.com writes:
<snip>
> Let’s say I will have a Folder on my computer called Text with files
> called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
> Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,…etc. Then a similar Folder
> for the Images – Image1a.jpg, Image1b.jpg,…etc.
>
> Is there a program or routine that can go through the Text folder and
> create a file for each entry.

<snip>

This is not really topical here. The answer will depend on what
system you are using and what tools you have available. For example,
if you have Perl (a scripting language) installed it is a matter of a
few lines to write what you want. In fact the task is simple enough
to be done with the command-line tool (what is know as a shell
script on Unix-like systems and a batch file in Windows).

You might get better in some groups that is specific to you
system.

--
Ben.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09690 seconds with 10 queries