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
?
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
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.
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
?
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
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:
6 matches
Mail list logo