[thelist] Using PHP to write CSS

Jay Blanchard jay.blanchard at niicommunications.com
Tue May 21 07:13:01 CDT 2002


[snip]
Burhan Khalid wrote:

> Hello all :
> . . . is there a way to have PHP
> scan a file for a place holder and then replace it with something else?
I'm
> looking for a greymatter-like {{something}} type solution.
[/snip]

http://www.php.net/manual/en/function.fopen.php
http://www.php.net/manual/en/function.ereg-replace.php

You can use fopen() along with a reg ex replacement to do what you are
looking for.

HTH!

Jay





More information about the thelist mailing list