Nietzsche says "God is dead" God says "Nietzsche is dead "
Header image

I needed a function to get  (learn) url with php. Here are the codes. <?php function curPageURL() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pageURL .= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> To use this function write … Read more

It is very important to check your data that you take with $_GET before use. You can use $_Get in some cases , in each case there are some different measures to be taken. For example if you use sth like that if(isset($_GET[ex])) include($_GET[ex]); If you use this codes, bad users can include any page … Read more