Related Articles
Speed up PhpStorm Right away
Are you using PHPStorm IDE, then see below simple tricks to speed up the performance of PhpStorm IDE. Speed up PhpStorm 1. Turn on Power Save mode File -> Power Save Mode or using “Hector the Inspector” icon in the IDE status bar. This mode turns off on-the-fly code inspections This way you can finish […]
Simple Alert Box on Windows Using VBScript
Copy below code in a notepad and save it as alert.vbs (as all files) X=Msgbox(“Your system is Hacked! Please Contact IT Support Immediately.”,0+3,”Alert!”) Now run alert.vbs to show alert box on your windows machine. Change 0+3 to 0+16 to show different alert box.
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”] […]

