Php
Php¶
File Extensions¶
List of default File Extentions and Php Versions:
OS | Regular Expressions | File Extentions | ||
---|---|---|---|---|
Arch, all versions | php$ | .php | ||
CentOS with PHP 5.4 | php$ | .php | ||
Fedora with PHP 7.0, 7.1 | php$ | .php | ||
Fedora with PHP 7.2 | (php | phar)$ | .php, .phar | |
Ubuntu/Debian with PHP 7.1, 7.2 | ph(ar | p | tml) | .phar, .php, .phtml |
Ubuntu/Debian with PHP 7.0 | ph(p[3457]? | t | tml) | .php, .php3, .php4, .php5, .php7, .pht, .phtml |
Debian with PHP 5.6) | ph(p[345]? | t | tml) | .php, .php3, .php4, .php5, .pht, .phtml |
Ubuntu with PHP 5.5) | ph(p[345]? | t | tml) | .php, .php3, .php4, .php5, .pht, .phtml |
Debian with PHP 5.4) | ph(p[345]? | t | tml) | .php, .php3, .php4, .php5, .pht, .phtml |
Ubuntu with PHP 5.3) | ph(p3? | tml) | .php, .php3, .phtml | |
Ubuntu with PHP 5.?) | .phtm$ | .phtm |
File Names¶
PHP tries to resolve varables in strings
Examples:
"asdf{${func_that_returns_var()}}asdf"