Learning PHP

Discussion in 'PHP' started by valo manus, Nov 8, 2013.

  1. #1
    I am not a student of computer science but I am interested to learn php. Please give me some suggestion how can I learn.
     
    valo manus, Nov 8, 2013 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    First thing you should learn is to use a search box on a webpage, or/and Google. That would probably get you there quite a lot quicker. If you, for instance, were to run this little query on this very forum: https://forums.digitalpoint.com/search/26343257/?q=learn+php&o=date&c[title_only]=1 you'd get quite a few hits. Same if you run "tutorials to learn php" on Google - also quite a powerful searchengine.

    And yes, I'm old, grumpy and bitter - deal with it.
     
    PoPSiCLe, Nov 8, 2013 IP
    ryan_uk and malky66 like this.
  3. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #3
    Exactly what @PoPSiCLe said, the only way to learn is to use your initiative, if you can't do that you will get nowhere.
    Google is your best friend when you want to learn something...use it.
     
    malky66, Nov 8, 2013 IP
    ryan_uk likes this.
  4. valo manus

    valo manus Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    Tnx but time to need?
     
    valo manus, Nov 8, 2013 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    See, that's already the wrong attitude. Don't think of terms like "time" when you want to learn something new like this.

    It really depends on your requirements and on how much time you put into it. I've been coding for about 10 years now and I'm still learning. So it really depends on what you want to achieve here.

    You can probably hack something together in a few days, but if you really want to learn, it's going to take you a very long time. Heck, maybe it's going to take you the rest of your life, and even the day you die, you won't know it all.

    I for one, learned by taking existing codes, and taking them apart. Understand how they work, try to modify them, Google the things you don't understand. Then give yourself "homework" and start a few small and simple projects. Always Google and read php.net if you're stuck. Thanks to all the resources we have now, programming has never been easier. So the only excuse for not learning is your own lack of commitment.
     
    nico_swd, Nov 8, 2013 IP
    sarahk and ryan_uk like this.
  6. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #6
    How long is a piece of string?

    In addition to the excellent advice you have already been given by the other three, I'd say learn the concepts of programming in general and it will help you understand PHP and any other languages much more easily.
     
    ryan_uk, Nov 8, 2013 IP
  7. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #7
    I've been coding with PHP for about four years now and I still have to refer back to Google or on this form when I get stuck on a particular piece of code. It's a step-by-step process. There is no point where you've completely learned any coding language. I would start by reading through some basic articles about setting up a free hosting account where you can test your code and then make a few basic pages just displaying text, working with variables, working with IF ELSE statements, etc.

    After you've got the hang of the basics start working with forms and start looking at basic online scripts and see if you can make out what they're doing. Keep building up your knowledge and thinking of small scripts you could create and test your knowledge. After a while you'll get the hang of it, it's really a pretty easy coding language to learn.
     
    Pudge1, Nov 8, 2013 IP
    ryan_uk likes this.
  8. Arshid_K_V

    Arshid_K_V Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #8
    You can learn PHP easily . I think , w3school.com is best place for it . (http://www.w3schools.com/php/)
     
    Arshid_K_V, Nov 8, 2013 IP
    ThePHPMaster likes this.
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    Nooooooo. Do NOT refer newbs to W3School. Really. Their examples are crap, and they teach outdated DB functionality.
     
    PoPSiCLe, Nov 10, 2013 IP
  10. valo manus

    valo manus Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #10
    is to much difficult?
     
    valo manus, Nov 10, 2013 IP
  11. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #11
    Try and then you will know. At this rate, you will die from old age before you know.
     
    ryan_uk, Nov 12, 2013 IP
    Pudge1 and malky66 like this.
  12. domainvale.com

    domainvale.com Active Member

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #12
    It not difficult, I recommend you watch training videos from phpacademy.org, its free. You can also search there videos on youtube, avoid distraction and dedicate time. Stay away from dream killers.

    Your first tutorial start here: We want to write a line of code that will display "Hello World", sound funny?

    First: You will need to install couple of applications program on you PC for you to have a local server.
    What you will need: I assume you are using a windows operating system. If you are using a Mac, it is pre-configure, you only need to enable it.

    Download and Install: WAMP and Notepad++ is all you will need to get started.
    You will see the wamp icon, click on it and start Apache and MySQL
    Open notepad++, Copy and paste <?php echo 'Hello World' ?>
    Save the file as index.php into a folder where the WAMP files are. You will see "htdocs"
    Make sure you save the index.php in the "htdocs" folder.
    You can now preview it on a browser.

    Congratulations, you have written your first program in PHP


    Good Luck.
     
    domainvale.com, Nov 12, 2013 IP
  13. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #13
    get a PHP/SQL book
    and then read the PHP.net

    and then start with basic codes, functions ,math, logic
    and SQL systems for password logins etc.

    then come to Digital Point and ask lots of questions like others do when learning. lol
    also read the posts , go through the daily posts and read them ..and learn things you might need need now, but you'll have seen it and learned how they did it.
     
    ezprint2008, Nov 16, 2013 IP