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 [2014/08/07 17:35] – juckins | php_tricks [2018/10/19 14:11] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | # the entire URL of the current page, including query string \\ | + | __Installing PHP 7 on CentOS7__ |
- | $url = $_SERVER[' | + | |
- | # the base URL of the current page without | + | |
+ | Code tips: | ||
+ | |||
+ | < | ||
+ | $actual_link = ' | ||
+ | echo "Our URL: $actual_link< | ||
+ | |||
+ | # the entire | ||
+ | $url = $_SERVER[' | ||
+ | echo "\$_SERVER[' | ||
+ | |||
+ | # the base URL of the current page without query string | ||
$url_base = $_SERVER[' | $url_base = $_SERVER[' | ||
+ | echo " | ||
- | # The web host \\ | + | # The web host |
$host = $_SERVER[' | $host = $_SERVER[' | ||
+ | echo " | ||
+ | |||
+ | # Just the path of the URL without the filename | ||
+ | $path = substr($_SERVER[' | ||
+ | echo "Path of the URL without the filename ---> $path< | ||
+ | </ | ||
More info on parsing the URL: http:// | More info on parsing the URL: http:// | ||
+ | |||
+ | Showing errors: | ||
+ | < | ||
+ | <?php | ||
+ | ini_set(' | ||
+ | ini_set(' | ||
+ | error_reporting(E_ALL); | ||
+ | ?> | ||
+ | |||
+ | test | ||
+ | |||
+ | <?php | ||
+ | echo " | ||
+ | $file=fopen(" | ||
+ | ?> | ||
+ | </ |
php_tricks.txt · Last modified: 2018/11/01 21:32 by juckins