1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How did you learn php?

Discussion in 'PHP' started by scutari, Jun 1, 2008.

  1. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Easiest way I've found is to hit the ground running. Come up with a very simple project and do it. For example, create a php script that will simply state the following:

    
    Hello!  
    
    Your ip address: {IP}
    Your operating system: {OS}
    Your web browser: {Broswer}
    Your internet service provider: {ISP}
    
    Code (markup):
    Change everything in the { } to actual dynamic data.

    A beginner could learn to do this in about 5-6 lines of code, and it will teach you the basics of how PHP works. An experienced PHPer will do it in 1 line of code.

    Use php.net and read up on how $_SERVER works to display the data to get you started.

    Once you've done that, expand it to show other neat stuff.
     
    Christian Little, Jun 3, 2008 IP
  2. Tom__

    Tom__ Peon

    Messages:
    148
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Editing others their scripts.
     
    Tom__, Jun 3, 2008 IP
  3. kalisthegreat

    kalisthegreat Peon

    Messages:
    132
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #23
    kalisthegreat, Jun 3, 2008 IP
  4. pachecus

    pachecus Well-Known Member

    Messages:
    1,841
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    110
    #24
    pachecus, Jun 3, 2008 IP
  5. coffeesonnow

    coffeesonnow Peon

    Messages:
    34
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #25
    I used w3schools, then tried to make my own script. Whenever I ran in to a problem, I did a google search for how to do it, or looked at a script that I knew already did what I wanted. If I had any more questions, I did a google search for the command the script was using.
     
    coffeesonnow, Jun 3, 2008 IP
  6. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I just edited scripts and gradually got better and learned the langauges
     
    CuBz, Jun 3, 2008 IP
  7. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #27
    Well i downloaded php triad and I am trying to read this book: php examples..it is simple but need to read this first before going top more advanced things.
     
    scutari, Jun 4, 2008 IP
  8. neuromante

    neuromante Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #28
    I learnt just reading when i need something specific, this is NOT the proper way. But i have been a programmer for over 15 years. Just try to be methodic, learn control structures, I/O functions, String manipulation, just as you'd do with every other language, You better read about object oriented programming cause php frameworks works that way (cakephp, symfony, etc)
     
    neuromante, Jun 4, 2008 IP
  9. alvas

    alvas Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #29
    I agree with pachecus. PHP manual is good enough for starter, and also look into some sample code that you can found easily
     
    alvas, Jun 4, 2008 IP
  10. freelance-php

    freelance-php Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #30
    start from basic like add edit delete search uploading database connection etc then try to merge all basic script and make small project ...... if you need help check php forums
     
    freelance-php, Jun 5, 2008 IP
  11. dynashox

    dynashox Premium Member Staff

    Messages:
    8,662
    Likes Received:
    563
    Best Answers:
    3
    Trophy Points:
    335
    #31
    I bought a PHP books and video tutorials. After that, I just need to practice and practice.
     
    dynashox, Jun 5, 2008 IP
  12. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #32
    What about this book I found PHP_BY_EXAMPLES..I have read about 150 pages now and got lots of concepts clear..though did not start on MYSQL.
     
    scutari, Jun 6, 2008 IP