Re: [PHP] Dynamic PHP links

2005-02-14 Thread Richard Lynch
Eduard Grigoryan wrote: > Hi, > > I'm new to PHP and I'd appreciate your advice a lot. > I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna > use something like > this: > File "index.php": > story > about > if(isset($content)): > include $content; > else: > include "about.htm

Re: [PHP] Dynamic PHP links

2005-02-13 Thread Burhan Khalid
Eduard Grigoryan wrote: Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File "index.php": story about But a guy told me it is not preferable to use this method because of security considerat

Re: [PHP] Dynamic PHP links

2005-02-13 Thread Ryan A
Hey, The reason your pal warned you against that approach is, someone could screw with your url with something like this: index.php?content=/etc/httpd/.dbmpasswd which would include that file if it exists...its a security problem, be careful and know EXACTLY what you are including/requiring. -R