Posts

Showing posts from January, 2020

How to Get The Full URL and Parts In PHP

<?php function getFullURL ($strip = false) { // getFullURL() : gets the full URL // PARAM $strip - strip away the query and hash portion // THE PROTOCOL $url = ( isset ($_SERVER[ 'HTTPS' ]) ? "https://" : "http://" ); // HOST $url .= $_SERVER[ 'HTTP_HOST' ]; // SET THE PORT ONLY IF IT IS NOT HTTP/HTTPS if ($_SERVER[ 'SERVER_PORT' ]!= 80 && $_SERVER[ 'SERVER_PORT' ]!= 443 ) { $url .= ":" . $_SERVER[ 'SERVER_PORT' ]; } // THE PATH, FILE NAME, AND QUERY $url .= $_SERVER[ 'REQUEST_URI' ]; // STRIP QUERY AND HASH if ($strip) { $url = strtok($url, '?' ); $url = strtok($url, '#' ); } // THE ENTIRE URL return $url; } ?> Credit: https://code-boxx.com/php-url-parts/

Remove your User Folder from Navigation Panel

Run regedit Go to HKEY_CLASSES_ROOT\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}\ShellFolder Change Attributes to f094012d ( Change owenr/permission if needed) Delete PinToNameSpaceTree (if there)  Go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}\ShellFolder Repeat step above