Page 1 of 1

Open and write to template.

Posted: Tue Feb 15, 2011 11:07 am
by jpaytoncfd
I want to have some HTML template files. What I want is to open them fill in the variables and save them as a new file. make sense?

Re: Open and write to template.

Posted: Tue Feb 15, 2011 12:48 pm
by AbraCadaver
1. file_get_contents()
2. fill in the variables
3. file_put_contents()