[PHP] How to parse PHP tags in a string?

2007-02-07 Thread Zak Mc Kracken
Hi all, Is there a PHP function that parses a string as it was the content of a PHP file? I have a CMS application and editors write the news items text into a text area. Since they have some knowledge of PHP, I'd like to allow them to insert or and have the content blocks parsed and executed.

[PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Zak Mc Kracken
Hi all, I'm using syslog() function to log messages. My problem is enough typical. An example: syslog ( LOG_DEBUG, "The function output is: " . very_slow_func () ); Since very_slow_func() is, as written, very slow, I would like to know in advance if this message will be actually logged or not, so