Hi,
I have been trying to think of different ways round various problems in the structure of a site I am working on for some time now, and this would be very useful if it is possible.
Is there a function (or some other way) to execute a string in PHP? So if I have a variable which contains some PHP code, can I execute that code?
The only thing I have thought of is writing it to a file, then including/requring the file. This would not be at all ideal, and I am not going to do that!
I am fairly sure that simply echoing the variable does not run the PHP, although come to think of it I am not sure if I tested that or not. I am sure it wouldn't though.
Can anyone help? Thanks very much for your time,
ristuart