Re: PHP code in form field - var_export() (slashes)?
| From: | Jason Wong | Date: | Wed, 24 Sep 2003 15:22:03 +0000 |
| Subject: | Re: PHP code in form field - var_export() (slashes)? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163765@lists.php.net to get a copy of this message | ||
On Wednesday 24 September 2003 22:43, Shawn McKenzie wrote:
> I'm storing some multi-dimensional associative arrays in the file and then
> when I need the values somewhere I just include the file and voila my
> arrays are defined. Seemed better than looping through arrays writing to a
> file and then using the same loop structure to read lines from the file and
> assign back to the same array that I had it in in the first place.
Still don't understand why you're using var_export(). You said that the
textarea contained php code right? Could you give an example of the kind of
code that you would enter into the textarea?
--
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
------------------------------------------
/*
No matter how much care and money you put into your antique collection, your
neighbors are still going to think its trash.
-- Cohan's Edict
*/