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";} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.