What you should know about: Dynamic Includes
Created By Eric Gach [eric] on July 29, 2008
Welcome to my "What you should know about X" series. Over
the next few weeks/months, I will be writing more tutorials on things
that I've learned through my experiences with PHP on a daily basis that
I think everyone else should know. This series will be a series of
tutorials showing good and bad ways of doing whatever the subject is,
and explaining why each is good and each is bad. I will also include
tutorials that will show how to do some basic and advanced things.
This week we're discussing a very important issue called "Dynamic Includes" that I've come across a lot by using PHP and helping other users that
use PHP to build their professional and personal websites. There's a
lot of bad tutorials out there that can mislead an inexperienced
programmer to thinking that user input is safe and does not need to be
checked. This, of course, is WRONG. User input should never be
trusted and should always be vigorously checked no matter the
situation. Not just because it can be malicious, but because people
make mistakes. I might cover this in another article, but it is
something to take into consideration when using dynamic includes that
are based upon user input. Lets move on.
Read More - Rating: No Votes - Views: 50
