Hey all,
I have a PHP class I want to convert to a PHP extension. I checked some tutorials and it's a bit complicated (see here, here and here).
It's just a hard work.
I found this – a simple example with few andn small files. So wanted to ask if it is possible to use this to make it grab a PHP class from a certain path (say /home/website1/public_html/api/class.php
), execute it and return the class instance.
This way it will be usable in all others websites that are hosted on the same server – just call the function and you got your instance.
Is that possible ?