I am building a smallish site that has planned growth over the next year or so. I have time to do this correctly and would like to do so, most other projects I have done have come down to the wire for one reason or another. Anyway, I have two hopefully easy questions and one that could be opinion.

1. Error trapping. There are probably going to be times where there is going to be an error, I know you say but Didier not with your code, but there is alot of content being touched by lots and lots of people. What I want to do is not to display the error to the screen, but you put up a generic message and have it fire off an email to me. This would be for database queries and forms and such. Any thoughts.

2. Templates. Oh I have tried Smarty and all the rest, usually just too much for my little sites. Plus I like doing the work myself and I like ... well thats a story for another time. I'm going to use modules for some of the items, but basically the header and footer will not change, in the past I have done the traditional header and footer include, but basically I dont want to have to rerun that php code and sql queries everytime I load a page. Is there away to make a request for a page without loading the header and footer just have them stay the same. I dont know maybe being to picky.

3. Functions vs. Queries on the page. Most sites I do, I start out with the great intention of doing functions and keeping alot of the logic off of the presentation layer, but that ends up going away after awhile and there mixed in with the html, dhtml, css and client javascript is php, asp or jsp. Any thoughts, hints, tips for trying and succeeding on keep the logic away from the presentation.

thanks

didier

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus



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



Reply via email to