Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How do I learn php ?

  1. #1
    Join Date
    Apr 2007
    Posts
    52
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default How do I learn php ?

    Dear friends, I have all the books, editors and everything to learn php, I have been reading this book since 2 years, it looks like i understand but when i go for real coding i can't write nothing. I am now principally familiar with classes and function but when I start writing , I don't know what to do. Is dreamweaver cs4 good or zend studio to kick off with and how should I start to really get into the php professional ? Any advise would be highly appreceated.

    Thank you

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    You have to sort of set yourself a task / exercise to complete. For example, give yourself a problem, like you want to be able make a contact form, and then using knowledge you've already picked up you should be able to create one, then after you've done that set yourself a new challenge.

  3. #3
    Join Date
    Oct 2008
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I myself started with registration script then registration + login then add article to what I did. now I have simple news script

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Visit http://www.php-mysql-tutorial.com and follow those tutorials. There are also others online, but I can't recall them off the top of my head at the moment.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    http://www.w3schools.com/PHP/DEfaULT.asP is also good.

    The important thing is to know what you want to create. Start small and slowly build upon the script. Always look to see how you can make it better and more efficient.

    Like any good salesman will ask "what do you want to use it for?" What do you want PHP to do? After you have figured that out just start typing. Keep it small at first; maybe a few words long. test it out to see if it works and then keep going.
    To choose the lesser of two evils is still to choose evil. My personal site

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    W3Schools' tutorials are generally of terrible quality and to be avoided. The PHP one is no exception.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    In that case I withdraw my w3schools suggestion, however what would you suggest is better?
    Last edited by james438; 11-18-2008 at 06:03 PM.
    To choose the lesser of two evils is still to choose evil. My personal site

  8. #8
    Join Date
    Nov 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I wanted to create a custom CMS for my roleplaying game =]
    I started out with the small stuff: registration, login, then adding news, then user mail, then forums. It's a work in progress, but in the beginning I used tutorials for all those things separately. I had to feel around in the dark and make custom scripts from those tutorials, then make sure my custom ones work =] they're right when they say, look for something you want to do, cos that's what I did and I used google to look for those scripts. now I'm building my own ^_^ good luck on learning php, I hope you're successful =]

  9. #9
    Join Date
    Dec 2007
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    http://www.tizag.com/

    It ends and begins there with those tutorials.

  10. #10
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by Schmoopy View Post
    You have to sort of set yourself a task / exercise to complete. For example, give yourself a problem, like you want to be able make a contact form, and then using knowledge you've already picked up you should be able to create one, then after you've done that set yourself a new challenge.
    This is the best advice out of all the replies that I have seen thus far.

    Generally most books will have a section for "chapter review" much like most school books do. Try performing the exercises contained within those chapter reviews. If you must look frequently at the book to perform the exercises, you haven't learned the language.

    Reading how something is done can lead to a false positive, because its natural reaction to see something that does work and say oh yeah, that's cool. That's simple, when in fact you are just assuming its simple because the entire problem has been done for you.

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
  •