A general thing to do while coding a site is to
include header.php at the top of the file (and
footer.php at the end of file). Another method is to
put these header and footer files together in
index.php and including the desired page between them.
We get the desired page from the query string:
domain.org/?page=pageName
$page = $_GET['pagename'];
include $page.'.php';
Is there any important difference between these two
methods? What can you say about the advanteges or
disadvanteges of one to the other?
Assume that including undesired pages is prohibited. I
mean don't write about page=../../secretpage

Thanks...

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to