Ian Forsyth ian at
Sat Jun 22 20:11:21 EDT 2002

I am setting a basic CMS type thing.

Speediness aside, I am storing any all content in the db.

Basically i am trying to store php in the db that I want to do and eval();
on. To get started I inserted the following into the db -

echo "hello";

and am doing the following for the result set

$str = eval($row['content']);


Storing the value in $str does nothing and output buffering didn't seem to
work; how can i control where the eval gets spit out?

I have read about doing addslashes and stripslashes, but that does not seem
to work in my case....


More information about the talk mailing list