artcoder, it depends on goal
if one need to run their own site, I’ll be first, who wote for ready-made CMS
if one wants to learn PHP language - writing CMS is very good practice dummy to train on
rguy84, just take in account that your first CMS won’t be secure at all. It is ok. First things never be perfect. Many security issues learned only from own experience.
ok u will find tons of tutorials for it
BUT
my simple advice…
just dont go for simple logic…
total procedural oriented simple php…10 lines codes…
make a mind frame to use best technique from the initial phases…like making single channel entry(use of functions),data santization,abstraction and making generic function and all…
if u start with that frame it will save lot of ur time later…
otherwise u will spent 6 months in simple php…and then relaize that i could have done in this way…and so on…
the simple things may block the innovation in initial phases…
and slowly moves to object oriented…with out which u wont be complete php programmer in php market(debatable but pratical truth…)
Can you recommend any comparisons to what you are talking about. Sorry about my ignorance, I am quite new at PHP programming and have never programmed anything in my life, although I have this inevitable addiction towards programming so I’ve been teaching myself. Can you recommend any books on OOP with PHP?
ok one simple comparision
few years ago i use to do
$data = mysql_real_escape_string ($_POST[‘data’]);
//or any such function
now a days i do
$data=input_sanitizer($data,type);
and make a function and pass all input through single channel…
just an example and look simple but those different method have huge difference ,later having more than 100 of advantages…
u can add any santizing method(even later),u can make it more generic…list goes on…
second
identify repeating codes and make it function file as soon as possible…like image_functions.php may be for validation as well …and so on…
(ok i have reached around 100 such points…if i didnt wrote book i will definately post it somwhere online with examples…)
so things like these are often overlooked by intial staters and they just go for results…and later realaize…if i had known this …ago…?..had i done this rather than this that time…and so on…
important thing to bear in mind…these are not step wise development…if one is capable…she can start using from any method …points…it just limited to own personal thought,knowledge…
so start good habits from startup and think long term…
about oop book again,must of the php book i have found doesnt teach to make apps using oop php rather they teach u fundamentals of oop and how it is implemented in php…
so u can grab any book to get basics of oop…even c book may work…
then go to some framework straight away…if u become capable to do that it would save lots of ur time
for eg code igniter,cakephp…
coding in these framework can be termed as programming in oop php(ok not all…but definatley an oop php coder)
If you want to learn I fully recommend Kevin Yanks book ‘Build your own database driven website using php and mysql’. Go from scratch with this in one hand and you wont get bogged down with terminology which as a beginner you wont understand; nor will you be wading through masses of somebody elses code which doesnt seem to make sense.
This book has taught me the basics and as a beginner I refer to it nearly every day. Its helped me to work things out for myself and whilst I may not produce the tidiest code, I usually get it to work, understand it and I’m learning as I go.
I agree with the later posts. “ Joomla popular, award-winning CMS that will help you build powerful online applications. With Joomla its the other way around, you get too much code that you dont need and you spend ages sifting through it all.” Joomla is actually platform for 21century. While each of us has its own point of view…