RE: [PHP-DB] Parsing of db results by PHP

From: Date: Mon, 10 Sep 2001 13:53:07 +0000
Subject: RE: [PHP-DB] Parsing of db results by PHP
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12296@lists.php.net to get a copy of this message
Hrm, yup... that does what I want... thanks :) It might be a little bit messy... because it'll most likely be embedded in text :) I'm making a weblog system for myself, so the full field might be "blah blah blah <? ... ?> blah blah" which will most likely get messy... Ahh well... Rob At 11:52 PM 10/09/2001, Rick Emery wrote:
use this PHP function: eval() As quoted from the PHP manual: "eval() evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution" Further info is in the manual under the Miscellaneous Functions chapter (XXXVIII). -----Original Message----- From: Robert Gormley [mailto:robert@seabreeze.asn.au] Sent: Sunday, September 09, 2001 1:18 PM To: php-db@lists.php.net Subject: [PHP-DB] Parsing of db results by PHP Hi all, I have a MySQL db which contains table test, field test... one of the entries is
        "<? external($url, $text); ?>"
Where external() is a function i've written which outputs simple text. I want to be able to put calls to this function into the database, and have them parsed on rendering... With the above example, the raw code is just spat to the browser, and doesn't hit the interpreter. Any ideas? Regards, Robert Robert Gormley robert@seabreeze.asn.au http://seabreeze.asn.au/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Robert Gormley robert@seabreeze.asn.au http://seabreeze.asn.au/

« previous php.db (#12296) next »