Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

PHP Interface


THT has basic support for calling PHP libraries via the Php module.

PHP Files 

Accessible PHP files should be located in app/misc/php.

They can be executed via Php.require, which uses PHP's require_once function.

// Load 'app/misc/php/myPhpLibrary.php'

// Call a global function
$val ='a_php_function', 'arg1', 'arg2');

// Construct a PHP object
// Namespaces can use '/' instead of '\'
$obj ='Abc/MyClass');


See Also