Re: Pregenerating Script

From: Date: Thu, 31 Jan 2002 17:44:07 +0000
Subject: Re: Pregenerating Script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82961@lists.php.net to get a copy of this message
On Thu, 31 Jan 2002 22:28:59 +0530, you wrote: > I want a php script which takes 4 parameters : > > - header file > - body file > - footer file > - OUTPUT file > > What it should do is combine 1. header, 2. body, and 3. footer and save it as 4. OUTPUT file Is cat header body footer > output too simple? Any reason why it has to be PHP? Suppose you could do : <? $header = "header.txt"; $body = "body.txt"; $footer = "footer.txt"; $output = "output.txt"; exec("cat $header $body $footer > $output"); ?> djo

« previous php.general (#82961) next »