dk4210 Posted November 30, 2006 Share Posted November 30, 2006 Hello Guys,Could you take a look at my code and see if it is secure enough or if I need to modify it to be more secure?.This is how I call my pages. My link looks something like this http://www.mydomain.com/index.php?content=myscriptand it works great, but I am concerned about the sccurity.. Thanks in advance for your help. Dan$file = (empty($_GET['content']) ? 'main' : $_GET['content']);if (file_exists($_SERVER['DOCUMENT_ROOT'] . '' . $file . '.php')){include($file . '.php');// print "ok"}else{print "Page not available";} Link to comment https://forums.phpfreaks.com/topic/28928-php-security-question/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.