Best way to learn PHP

Discussion in 'PHP' started by Ash1402, Jan 19, 2009.

  1. #1
    Hi, I am wanting to learn PHP and was wondering what the best way would be. I find myself more of a visual/listening learner so if anyone knows of any good video tutorials which start at beginner and go through to advanced that would be great.

    Thanks for your time,
    Ash
     
    Ash1402, Jan 19, 2009 IP
  2. NinjaWork

    NinjaWork Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    best way to learn is to find some simple code and start to modify it to do what you want.

    I like the docs on php.net and they have a good tutorial there
     
    NinjaWork, Jan 19, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Instead of video tutorials, go on experimenting with codes, and grabbing a copy php.net documentation.

    That way you will learn faster.

    BTW, have a good command on HTML too. It will help you a lot.
     
    harrisunderwork, Jan 19, 2009 IP
  5. paitken

    paitken Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'd suggest learning basic html first, mainly a good grip on forms and how they operate. From there, read thoroughly through the php.net documentation. Start a project, write out the ideas, plan it, etc. From there, slowly work on your project, add things you want to it. IRC is a good resource for help when lost. Do not ask for help until you have absolutely tried doing it by yourself.
     
    paitken, Jan 19, 2009 IP
  6. NinjaWork

    NinjaWork Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    there are three most important things about programming:

    regex. regex. regex

    so, seriously, go find a good tutorial about "regular expressions"

    then also learning about the differences between a variable, array and associative array

    and, of course, the different loops: if/else, while, for, etc
     
    NinjaWork, Jan 19, 2009 IP
  7. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #7
    @NinjaWork

    You must be joking, right :D

    I mean, how could u jump in regular expression without having the basic idea of php or html ?

    You are telling him the reverse direction, mastering first programming and then tell him how to switch on the PC .
     
    harrisunderwork, Jan 19, 2009 IP
  8. NinjaWork

    NinjaWork Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ah well, I was just remembering my "break through" points

    regexes were a big one

    so were arrays and hashes (in perl)

    but, I guess you got to start with loops! :D
     
    NinjaWork, Jan 19, 2009 IP
  9. LogicFlux

    LogicFlux Peon

    Messages:
    2,925
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Right. Have a problem that you need solved. Find a script that solves it, chances are it won't do it exactly how you want. Figure out how to customize it to your needs. You'll probably have to ask questions on forums along the way.
     
    LogicFlux, Jan 19, 2009 IP
  10. edc

    edc Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I found php.net, along with creating pages / scripts that did what the tutorials were explaining alongsite the reading, was an excellent way to learn PHP (although I'm certainly far from an expert). -e-
     
    edc, Jan 19, 2009 IP
  11. firmaterra

    firmaterra Peon

    Messages:
    756
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #11
    THe only way to learn is by doing. I'm not sure there are all that many FREE good video tutorials out there on php. Grab some script and dig in. Learn to modify it. Learn to change it. You'll pick it up as you go along. Or start writing a simple script yourself. I find doing the scripts that accompany books to be most tedious and boring! Far better to be working on a project that interests you and that your excited about.
    That way when you have to sit down to learn, you want to learn, and its not a case of Oh no, more book scripts about coding a telephone directory... :D
     
    firmaterra, Jan 19, 2009 IP
    LogicFlux likes this.