David Sklar has a talk tomorrow [1] on his implementation of embedded PHP in MySQL. This look e.g. like this:
mysql> SELECT php(\’\’,\’hello, world!\’);
+————————-+
| php(\’\’,\’hello,world!\’) |
+————————-+
| hello, world! |
+————————-+
1 row in set (0.36 sec)
The source files are available at his site [2].
[1] http://talks.php.net/show/myphp/
[2] http://www.sklar.com/page/article/myphp