Page 1 of 1

Converting files to template file

Posted: Mon Jan 26, 2004 5:45 am
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

Posted: Mon Jan 26, 2004 7:25 am
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].