Re: PHP code in form field - var_export() (slashes)?
| From: | Jason Wong | Date: | Wed, 24 Sep 2003 06:15:48 +0000 |
| Subject: | Re: PHP code in form field - var_export() (slashes)? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163693@lists.php.net to get a copy of this message | ||
On Wednesday 24 September 2003 12:00, Shawn McKenzie wrote:
> O.K. I am collecting PHP code in a textarea and then using var_export() to
> a file for later use. In the file, the PHP is in single-quotes.
I'm curious, why are you using var_export() if it's causing so many problems?
Acutally why are you using var_export() at all, am I missing something?
Couldn't you just write the string containing the contents of the textarea
straight out to a file?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The only function of economic forecasting is to make astrology look
respectable.
-- John Kenneth Galbraith
*/