Re: exists max number of case block in switch steatment ?
| From: | raditha dissanayake | Date: | Tue, 27 Jul 2004 18:07:50 +0000 |
| Subject: | Re: exists max number of case block in switch steatment ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191997@lists.php.net to get a copy of this message | ||
Gianni Pirini wrote:
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? Depends on what you are trying to achieve. But if you have a lot of cases in your switch - that probably means your design can be improved.
If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some problem or not ? If it's just a simple redirection look at apache URL rewriting - there is an excellent guide in the manual.
Thank you very much !! By By, Gianni from Italy...-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.