[thelist] Using PHP to write CSS

Ron Dorman rwd at csi1st.net
Mon May 20 14:17:01 CDT 2002


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.


would something like this help you?

$body = str_replace("%uname%", $uname, $body);

%uname% = string in file to be replaced
$uname  = php variable to replace the string
$body   = the file to search and replace in

Ron D.




More information about the thelist mailing list