need an opinion on this idea of mine...!!

From: Date: Mon, 09 Jul 2001 20:43:39 +0000
Subject: need an opinion on this idea of mine...!!
Groups: php.general 
Request: Send a blank email to php-general+get-57010@lists.php.net to get a copy of this message
hey- I'm writing my band's website mostly in PHP. My original idea was to use a switch statement to compensate for all the different functions i would need to use, for example a function to stream songs, download songs, display links, display shows, etc... I wanted to have all these functions on one master page called index.php, and then have one of the functions within my switch statement be used for display each individual page. So this function would include each separate php file, and then basically the master file has all of the functions that each page needs to function correctly. Is this a good idea? also. related question. if I have a file called index.php, and I include the file bio.php on that page, will the $PHP_SELF variable be set to bio.php, or to index.php? thanks chris

« previous php.general (#57010) next »