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: ? a href=index.php?content=story.htmstory/abr a href=index.php?content=about.htmabout/abr ?

[PHP] Dynamic PHP links

2005-02-13 Thread Eduard Grigoryan
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: ? a href=index.php?content=story.htmstory/abr a href=index.php?content=about.htmabout/abr ? if(isset($content)): include

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.

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: ? a href=index.php?content=story.htmstory/abr a href=index.php?content=about.htmabout/abr ?

[PHP] Dynamic PHP

2001-12-05 Thread Chris Hemmings
Hello! I'm sure I read this somewhere but I'm just not so sure now. Can you produce PHP code in a PHP page and then run it. Kind of like this: ?php $mycode=echo'Hello';; # Something here to execute $mycode ? Is the above possible?? Thanks! Chris. -- PHP General Mailing List

Re: [PHP] Dynamic PHP

2001-12-05 Thread Pavel Jartsev
Chris Hemmings wrote: Hello! I'm sure I read this somewhere but I'm just not so sure now. Can you produce PHP code in a PHP page and then run it. Kind of like this: ?php $mycode=echo'Hello';; # Something here to execute $mycode ? Maybe U need this function: