Code efficiency review
Posted: Sat Dec 20, 2003 7:46 pm
Hey,
I have a few scripts that I am working on, obviously they have been written in PHP, but I am looking for some feedback on how some of the tasks that are performed inside these scripts can be re-written more efficiently.
One of the pages I would like some feedback on is an index page that basically includes another page based on the URL.
Example URL: index.php?p=contact
Example Action: include the page that corresponds with the key of an array with the value "contact"
I won't post any of the code until I get the feeling some people would check it out.
To any moderators / admins who may come accross this post I did have trouble deciding whether this should go in the Project Help forum or this one, but since others might benefit from the reviews I thought it be best if it goes here.
I have a few scripts that I am working on, obviously they have been written in PHP, but I am looking for some feedback on how some of the tasks that are performed inside these scripts can be re-written more efficiently.
One of the pages I would like some feedback on is an index page that basically includes another page based on the URL.
Example URL: index.php?p=contact
Example Action: include the page that corresponds with the key of an array with the value "contact"
I won't post any of the code until I get the feeling some people would check it out.
To any moderators / admins who may come accross this post I did have trouble deciding whether this should go in the Project Help forum or this one, but since others might benefit from the reviews I thought it be best if it goes here.