Web.dev.app supports a subset of the PHP template language. Files with a .php extension will be interpreted as templates and rendered as HTML pages. The home page or any other page of an app may be a PHP file. Files loaded from Internet addresses will be treated as plain text instead of templates.
<?php to begin scripting,
<?= to echo a value, and
?> to close.
Files can be inserted using
require', or '
dev API is also available.
For example, you can use
PHP may be included in a HTML page using
It may be written inside the tag or loaded from a source file.
It can be rendered into HTML and returned as a string using...
PHP files can also be rendered into HTML pages during
Only a limited set of PHP functions and objects will be supported, with a focus on PHP's well known database APIs.
Supported functions and objects are auto-listed here. Please refer to PHP references for detailed information. Web.dev.app's implementation of some features may be inferior to the documented standard.
To use a database like SQLite3,
the database connector (
must be in the app folder or on the operating system.
See shared libraries.