php_tricks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
php_tricks [2016/07/20 16:56] – juckins | php_tricks [2016/07/20 16:57] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
$actual_link = ' | $actual_link = ' | ||
echo "Our URL: $actual_link< | echo "Our URL: $actual_link< | ||
- | # the entire URL of the current page, including query string | + | # the entire URL of the current page, including query string |
$url = $_SERVER[' | $url = $_SERVER[' | ||
echo " | echo " | ||
Line 17: | Line 18: | ||
$path = substr($_SERVER[' | $path = substr($_SERVER[' | ||
echo "Path of the URL without the filename ---> $path< | echo "Path of the URL without the filename ---> $path< | ||
+ | </ | ||
More info on parsing the URL: http:// | More info on parsing the URL: http:// | ||
php_tricks.txt · Last modified: 2018/11/01 21:32 by juckins