PHP source for UDF in Maria

Is there a way to create a UDF in Maria using the PHP method in a class.

There are a lot of PHP sites, this is in relation to encrypt data in MariaDB and the encryption algorithm is based on PHP.

Thanks.

Answer Answered by Federico Razzoli in this comment.

Technically, UDF's can only be written in C.

But you can achieve this by using Gearman. You should install Gearman UDF, anche use it to call a PHP script via Gearman. https://launchpad.net/gearman-mysql-udf

Or you can write a C UDF that calls a PHP script. The script should return its output as text (just like scripts called via the command line) and the UDF will convert it to the right type.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.