Storing PHP code in a database

From: Date: Tue, 13 Jan 2004 01:57:32 +0000
Subject: Storing PHP code in a database
Groups: php.general 
Request: Send a blank email to php-general+get-174403@lists.php.net to get a copy of this message
Hi, Is there much I need to know about storing mixed PHP/HTML text in a mysql database table, and then using eval() to execute it? All I managed to find so far is that I should store it in a blob. Do I need to escape characters, or perform any other filtering/conversions before I store it in the database? Similarly, what steps would people recommend when pulling the data out, before executing it? TIA Justin French

« previous php.general (#174403) next »