I've read through the examples at Php-Wasm in Javascript and Php-Wasm in Static HTML and I haven't found an example of how to include / require / include_once / require_once another PHP file. My use-case is pretty simple. I have a PHP file with a function and I want to use it from JS. I've tried many different options but all of them failed, usually with this error:
Warning: PHP Request Startup: Failed opening 'phpShrink.php' for inclusion (include_path='.:') in php-wasm run script on line 2
Am I missing something obvious?
I've read through the examples at Php-Wasm in Javascript and Php-Wasm in Static HTML and I haven't found an example of how to
include/require/include_once/require_onceanother PHP file. My use-case is pretty simple. I have a PHP file with a function and I want to use it from JS. I've tried many different options but all of them failed, usually with this error:Am I missing something obvious?