Related Articles
Command to see memory space on Linux in GB
Command to see Memory Space available in GB on Linux df -h How to start restart linux: just enter restart How to start Mysql on Centos Linux server: /etc/init.d/mysqld start Restart Mysql on Linux Centos: /etc/init.d/mysqld restart Stop Mysql on Linux Centos: /etc/init.d/mysqld stop Check status of Mysql on Linux Centos: /etc/init.d/mysqld status How to […]
How to Call a PHP Page Using jQuery
You can able to call PHP page/HTML page using jQuery function by including jQuery library. Check the below example to call a PHP file using jQuery function: You can display the PHP page which is called from jQuery function in the current page as below:
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”] […]

