Сформировать текущий адрес страницы можно с помощью элементов массива $_SERVER. Рассмотрим на примере URL...
phpinfo is located in /var/www/html/phpinfo. If you browse to this directory when this site is installed, it will show you information about the software configured in the server. This includes information about the php extensions installed and useful statistics like number of queries per minute.
CURLINFO_REDIRECT_URL - With the CURLOPT_FOLLOWLOCATION option disabled: redirect URL found in the last transaction, that should be requested manually next.
Я запускаю Ubuntu 12.04 с Apache 2.2.22 и PHP 5.3.10. Я бы хотел, чтобы пользователи могли запрашивать страницы на моем сайте, не набирая расширение «.php» и не беспокоясь о чувствительности к регистру. Например, такие URL-адреса …
Most important things to know about URL regex and examples of validation and extraction of URL from a given string in JavaScript programming language.
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
matching only links starting with http
Then, if have found a LFI vulnerability in the web server you can try to guess the name of the temporary file created and exploit a RCE accessing the temporary file before it is deleted.