Re: Generating a php file
| From: | Dan Rossi | Date: | Thu, 12 May 2005 01:14:38 +0000 |
| Subject: | Re: Generating a php file | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214996@lists.php.net to get a copy of this message | ||
On 12/05/2005, at 8:01 AM, Rory Browne wrote:
I'm still not sure I understand, although I'm getting there. This might be useful. $dynamicly_generated_script = "<?php \$buffer = \$_SERVER['QUERY_STRING']; \$somevar = '{$this->somevalue}'; ?>"; As might this: $dyn_gen_script = sprintf( '<?php $buffer = $_SERVER["QUERY_STRING"]; $somevar = \'%s\'; ?>' , $this->somevar ); \Ahh it looks like i have to addslashes to dollar signs ! I'll try tonight cheers.