unsider Posted July 19, 2008 Share Posted July 19, 2008 <?php if(isset($_GET['aid'])){ $article = $_GET['aid']; switch ($article) { case "{$_GET['aid']}": article(); break; Default; break; } ?> Can someone show me the proper way to completely secure this piece of code, I know a little bit about security, but now that I'm taking this stuff a little more serious I'm starting to read some books, which by the way, if there is a MUST read security book out there, let me know Thanks. EDIT: an error, and a little easier on the eyes. Link to comment https://forums.phpfreaks.com/topic/115623-solved-teach-me-a-thing-or-two-about-php-security/ Share on other sites More sharing options...
ignace Posted July 19, 2008 Share Posted July 19, 2008 you are already on the MUST be forum, can't believe you missed this great article: http://www.phpfreaks.com/tutorial/php-security Link to comment https://forums.phpfreaks.com/topic/115623-solved-teach-me-a-thing-or-two-about-php-security/#findComment-594368 Share on other sites More sharing options...
unsider Posted July 19, 2008 Author Share Posted July 19, 2008 you are already on the MUST be forum, can't believe you missed this great article: http://www.phpfreaks.com/tutorial/php-security ] Ahh this is the second time I've missed a tutorial on the main page. Sorry bout that. Link to comment https://forums.phpfreaks.com/topic/115623-solved-teach-me-a-thing-or-two-about-php-security/#findComment-594392 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.