RE: [PHP-DB] Unserializing objects containing PHP code
| From: | John W. Holmes | Date: | Sun, 24 Nov 2002 06:16:17 +0000 |
| Subject: | RE: [PHP-DB] Unserializing objects containing PHP code | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23621@lists.php.net to get a copy of this message | ||
> I am currently serializing some PHP objects and storing them in MySQL.
> When I pull them out of MySQL, I unserialize them and use them. Some
of
> these objects contain PHP code inside of arrays. I'd like to execute
> that PHP code rather than display it. Any ideas how to accomplish
this?
> (btw: I'd like to /not/ write the contents to a temp file and include
it)
eval() is probably what you want.
www.php.net/eval
---John Holmes...