SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30
  1. #26
    SitePoint Evangelist stonedeft's Avatar
    Join Date
    Aug 2009
    Posts
    590
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by frank1 View Post
    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)
    After which make a class for these functions so you can reuse your codes on other projects.
    Don't Panic

  2. #27
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry didnt get you

  3. #28
    SitePoint Enthusiast
    Join Date
    Jan 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello awelch, welcome!

    You can se this thread also on CMS:
    http://www.sitepoint.com/forums/showthread.php?t=528036

    Regards
    joejac

  4. #29
    SitePoint Zealot
    Join Date
    Oct 2008
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  5. #30
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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...


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •