Skip to content

Add example to include/require file #79

@vrana

Description

@vrana

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions