By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

PHP and Poetry

P: 18
Hi, I'm not gonna get your head into code. I want to know about the best practises and most efficient, as well as structurally flexible methods for a good website.

I have built some stuff on php earlier, but I always thought it lacked grace. It was more of slogging hours in front of the maschine rather than picking up on something intuitive. I tried asking in my local circle, but people seem to have vague idea of things - even those who working professionally suggested that I adopt a better methodology than theirs. I tried looking inside some php-based Open-Source Projects but that seemed some alien concept. I did not find much that I could identify with any of my previous projects. The code was split across several files which made understanding the flow of program an ugly affair.

First of all I feel panicky when communicating with several tables on the same page. Is that normal? Should I expect 80% of my code going into pulling stuff out of the databases itself? A database class can perhaps reduce my hassles, but it functions almost the same, doesnt it? And then there are joins across several tables. Should I try to create as many complex queries as possible?

Next comes the architecture of project. What do you recommend - making separate pages for each so that I can handle GET/POST variables in a sane fashion or do I create one file which relies on params eg index.php?x=aaa&y=bbb&z=ccc and does all the conversoins in there itself...And then there is a problem of carrying the POST/GET data forward across forms. Making reusable components seems tough. And even tougher seems the plugin architecture. I surely need a refresher course on that. Can you recommend me any online resources solely for this?

Is there any accepted way to implement a breadcrumb navigation? I spent some time over it today, and have found techniques, but they differ in the terms of efficiency rather than structure. Moreover, it is required that we feed them data at the start of our page, which I can better do by hand, then.

I'll pester you with only this much for now. Thanks for reading/replying to me.
Apr 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.