Related Articles
How to see configuration of a Linux system
All configuration files are located in proc files on Linux. To see CPU Info on Linux, see below command cat proc/cpuinfo To see Memory Info on Linux, see below command cat proc/meminfo or free -m or free -g
Provisional headers are shown in Google Chrome Browser Debugger
Recently I worked on a PHP webservice project and I saw this Provisional headers are shown in Google chrome browser and Opera browser.I digged some research on Google and find out mixed responses and at last I got it fixed by removing window.print() in script. Check out all the fixed Provisional headers are shown answers […]
PHP Server Common Codes To Get Values
$_SERVER[“DOCUMENT_ROOT”] === /home/user/www$_SERVER[“SERVER_ADDR”] === 143.34.112.23$_SERVER[‘HTTP_HOST’] === example.com (or with WWW)$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123__FILE__ === /home/user/www/folder1/folder2/yourfile.php —>//p.s. ON WINDOWS SERVERS, instead of / is basename(__FILE__) === yourfile.php__DIR__ === /home/user/www/folder1/folder2 [same: dirname(__FILE__)]$_SERVER[“QUERY_STRING”] === var=blabla#123$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123 parse_url($_SERVER[“REQUEST_URI”], PHP_URL_PATH) === /folder1/folder2/yourfile.php $_SERVER[“PHP_SELF”] === /folder1/folder2/yourfile.php//if “parentfile.php” includes this “yourfile.php”(and inside it are the codes written), and “parentfile.php?a=123” is opened, then$_SERVER[“PHP_SELF”] […]