This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "PHP File Inclusion"
From OWASP
(→Description) |
(→Examples) |
||
Line 5: | Line 5: | ||
==Examples == | ==Examples == | ||
+ | <?PHP | ||
+ | include '/path/filename.php'; | ||
+ | include_once 'path/filename.class.php'; | ||
+ | require '../path/filename.inc'; | ||
+ | require_once 'filename.inc.php'; | ||
+ | ?> | ||
==Related Threats== | ==Related Threats== |
Revision as of 17:11, 3 October 2007
This is a Vulnerability. To view all vulnerabilities, please see the Vulnerability Category page.
Description
PHP as many other languages allow the inclution of files in order to provide or extend the functionality of the current file.
Examples
<?PHP include '/path/filename.php'; include_once 'path/filename.class.php'; require '../path/filename.inc'; require_once 'filename.inc.php'; ?>
Related Threats
Related Attacks
Related Vulnerabilities
Related Countermeasures
Categories
This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.