single php-file page with include???
Posted: Mon Nov 18, 2002 5:36 am
Hi,
at the moment im developing a litte page just for fun, it looks like this:
-there is 1 single phpfile (index.php)
-the secion ist selected by giving a variable named content
(f.e.: index.php?content=news)
- i have a funtion drawcontent() which checks what the var "$content" is an displays the content by including a file
f.e.: if ($content == "news")
include ("news.php")
ok, my question? is it a stupid way to handle? (be polite *g*). is it bad vor the webserver etc? is there another more simple way?
p.s.: i dont want frames and i have seen there ARE a few pages handling there content with only one file
thanks a lot!
at the moment im developing a litte page just for fun, it looks like this:
-there is 1 single phpfile (index.php)
-the secion ist selected by giving a variable named content
(f.e.: index.php?content=news)
- i have a funtion drawcontent() which checks what the var "$content" is an displays the content by including a file
f.e.: if ($content == "news")
include ("news.php")
ok, my question? is it a stupid way to handle? (be polite *g*). is it bad vor the webserver etc? is there another more simple way?
p.s.: i dont want frames and i have seen there ARE a few pages handling there content with only one file
thanks a lot!