Converting files to template file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Linkjames
Forum Commoner
Posts: 90
Joined: Tue Sep 16, 2003 8:39 am

Converting files to template file

Post by Linkjames »

I have a large site of flat HTML files, and need to convert them into a template. Is it possible to use PHP to convert them, or do I need to use some software?

Unfortunatly PHP is not an option on the server they are hosted on, so I must do any PHP work on my machine, else I would use includes to it.

Any ideas?
LinkJames
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Depends on the template-engine you're using.
Depends also on what you need to replace:
if it's simple, use [php_man]str_replace[/php_man], if not use [php_man]preg_match[/php_man].
Post Reply