[nycphp-talk] eval;

Kyle Tuskey ktuskey at
Sat Jun 22 21:09:21 EDT 2002

I think I misread your problem, so you can disregard my previous
response.  As for $str, eval() doesn't necessarily return a value.  If
you need to handle output buffer control, look into the ob_* functions.
I'd also like to suggest that you find a better way to do this.  Using
eval() on code from a db isn't the most efficient way of doing what you


-----Original Message-----
From: Ian Forsyth [mailto:ian at] 
Sent: Saturday, June 22, 2002 8:11 PM
To: NYPHP Talk
Subject: [nycphp-talk] eval;

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
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
work; how can i control where the eval gets spit out?

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


More information about the talk mailing list