|
Posted by Dan Rossi on 05/12/05 04:14
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.
Navigation:
[Reply to this message]
|