- • Start with a mysqld that can load shared libraries
- • Download myphp from PECL or http://www.sklar.com/page/article/myphp
- • Configure PHP with --enable-embed=shared
- • Build PHP ("make")
- • Copy sapi/embed/php_embed.h to your myphp source directory
- • Build myphp ("make")
- • Copy myphp.so and libphp4.so to /usr/lib
- • mysql> CREATE FUNCTION PHP RETURNS STRING SONAME 'myphp.so';