Extending a single page management script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Mobius Man
Forum Newbie
Posts: 8
Joined: Mon Dec 15, 2003 8:16 pm

Post by Mobius Man »

Thanks guys. I've figured it out, and now I am getting it to work. Thanks.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Sami wrote:lol There is nothing wrong with what he uses, I use the exact same thing. And on most servers I've tested the different page switchers, the difference in script execution is not even a hundredth of a second; so no biggie.
In one program I noticed a huge jump in speed when I changed from a switch/case method to includes. Some simple scripting I'd done when I started out with php was replaced with a full-blown OOP front controller. On the first run I was dreading to see how badly some more complex code would affect the performance but in fact it was much faster despite all the OOP & extras. Best explanation I could find was that a lengthy switch/case in the original code had been holding things up. Shorter switch/cases probably aren't an issue though.
Post Reply