I installed PHP’s Mailparse extension (PECL) onto my VPS.
Now I want to make a script with it but have no idea how to include it into my script.
dl() does not work on my server so I’d need require() or require_once()
Path to PHP is /usr/bin/php
As far as I know it’s likely something like require_once("Mail/[something here]") but I cannot find any information on it.
Binary extensions do not need to be enabled in scripts. They just extend PHP with new functions and methods, so you can use it like it is part of PHP itself. However if you rely on 3rd party extension it’s good idea to check if it is installed otherwise your script will fail with syntax errors. Use get_loaded_extensions() and check the result for presence of whatever extension you require.