Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Ways to learn PHP?  (Read 16127 times)

0 Members and 1 Guest are viewing this topic.

Wuai Bel Ree

    Topic Starter


    Beginner

    Ways to learn PHP?
    « on: April 18, 2012, 01:12:44 PM »
    Is this any sort of free resource out there that teaches you PHP and gives you assignments that make you apply what you've learned? I read through the entire PHP section on w3schools and I don't remember (practically) any of it. I can't seem to learn programming languages on my own because I always forget the stuff or I can't discipline myself to read all the information, and I can't count on my school to force-feed information to me because they plain won't teach programming languages outside of web design and their servers don't support PHP and they refuse to get support.

    You can give me resources that aren't free. I've got a birthday coming up so I suppose I could get a PHP book for my birthday, though I've been kind of hoping to learn PHP before mid-May to late June. I want to be a freelance web designer while I'm off school, and it seems I won't be able to do that with just the CSS & HTML my school has taught me.

    reddevilggg



      Expert

      Thanked: 69
    • Experience: Beginner
    • OS: Windows 7
    Re: Ways to learn PHP?
    « Reply #1 on: April 18, 2012, 04:35:27 PM »
    I googled 'free PHP tutorials' and this was the first on the list. I always go for free myself, especially at the beginner stage.

    http://www.homeandlearn.co.uk/php/php.html
    11 cheers for binary !

    bobsklarservices



      Beginner

    • Time is of the essence.
    • Thanked: 2
      • Certifications: List
      • Experience: Experienced
      • OS: Other
      Re: Ways to learn PHP?
      « Reply #2 on: April 20, 2012, 01:12:54 PM »
      I started looking for something similar lately, and when I looked, I saw something about an ebook called "I Hate Php". I don't remember the site where I got it from, but if you Google it, I'm sure you could find it.
      Work to be all you can be. You define your limits!

      Linux711



        Mentor

        Thanked: 59
        • Yes
        • Programming Blog
      • Certifications: List
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: Ways to learn PHP?
      « Reply #3 on: April 22, 2012, 03:30:41 PM »
      YouTube

      "Genius is persistence, not brain power." - Me

      "Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Ways to learn PHP?
      « Reply #4 on: April 23, 2012, 04:21:56 AM »
      Like you, I can't remember all the PHP I've learned.  But one of the reasons why I love PHP so much is because of its excellent online help, so I don't need to remember it all.  And then I learnt the excellent PHP framework CodeIgniter, which made everything simpler still.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Ways to learn PHP?
      « Reply #5 on: April 23, 2012, 04:43:27 AM »
      PHP is one of the worst languages I have the displeasure of having to use frequently. But I won't get into why.

      Anyway, as with any language, Project Euler is a good start for learning or re-learning. Typically a good idea is to "extend" the project for the language domain. For C#, I used the functional constructs, iterators, and LINQ to work through some of the Project Euler problems in order to learn how to work with continuations, LINQ, and iterators.
      I was trying to dereference Null Pointers before it was cool.

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Ways to learn PHP?
      « Reply #6 on: April 23, 2012, 07:05:44 AM »
      PHP is one of the worst languages I have the displeasure of having to use frequently. But I won't get into why.

      I do feel your pain, I really do.  It lacks elegance and consistency and is horrible for the purist OO programmer.

      C#.  Ack.  ;)
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Ways to learn PHP?
      « Reply #7 on: April 23, 2012, 05:31:09 PM »
      I do feel your pain, I really do.  It lacks elegance and consistency and is horrible for the purist OO programmer.
      http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/

      It has nothing to do with OO purity. PHP isn't a OO language anymore than Perl is. I could tell you loads of problems with C#. It doesn't support metaclasses, static class members can't be inherited, and you cannot define a static interface; it's static evaluation constructs are limited, too, and it's property support doesn't allow for parameters. and so on.
      I was trying to dereference Null Pointers before it was cool.

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Ways to learn PHP?
      « Reply #8 on: April 24, 2012, 03:16:15 AM »
      http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/
      PHP isn't a OO language anymore than Perl is.

      Oh come on, it's much better than it used to be.   :P  We even got (better) namespaces in 5.3.  I've got my fingers crossed for 6. :D
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Ways to learn PHP?
      « Reply #9 on: April 24, 2012, 03:38:23 AM »
      Oh come on, it's much better than it used to be.   :P  We even got (better) namespaces in 5.3.  I've got my fingers crossed for 6. :D

      It's not necessarily a bad thing that it's OO constructs are limited. Perl's Object Oriented constructs are sort of stapled on too, and it shows. PHP isn't 'supposed' to be an Object Oriented Language, and it's pretty much impossible to add coherent Object Oriented constructs while maintaining backward compatibility, and when you do the entire language becomes confusing and unwieldy (case and point: C++).

      The problem seems to be that different sections are written using a different "structure" or standard; some libraries are called in a C-like fashion, returning some sort of error code; others return some important object or null; etc. There is no "PHP Style" as there is for most languages; this shows because even the standard library has a lot of inconsistencies :(

      I'm not really sure how it got popular, I guess it was just in the right place in the right time. It was the first language, to my knowledge, that was designed (a more appropriate word might be "grew") around the server-side. It's pretty much the "default" web language.

      On the bright side, frameworks such as the one you mentioned can at least insulate you from some of the language's idiosynchrasies. I use PHP on my webhost, even though my host supports Python, as well, because at the time I started it I knew a bit of PHP but pretty much no Python.

      It get's the job done, it's just awfully messy at it (though again I imagine various frameworks help with that too)
      I was trying to dereference Null Pointers before it was cool.

      rajaasad



        Newbie

        • Experience: Beginner
        • OS: Unknown
        Re: Ways to learn PHP?
        « Reply #10 on: May 04, 2012, 02:15:01 AM »
        Hello Wuai Bel Ree,

        There are many different online platforms, from where you can learn PHP. Like you mentioned, they will teach you with the help of practical exercises and small projects, how to program in PHP. These include the official PHP website http://php.net/, Lynda.com, totaltraining.com etc.

        Using their video tutorials and exercises, you can learn the language very easily and efficiently. For more information and learning the basics of PHP, please visit: http://www.techyv.com/article/basics-php

        TheWaffle



          Hopeful
        • Thanked: 4
          • Yes
        • Computer: Specs
        • Experience: Beginner
        • OS: Linux variant
        Re: Ways to learn PHP?
        « Reply #11 on: May 16, 2012, 03:37:13 PM »
        Wiki books has one

        TheWaffle



          Hopeful
        • Thanked: 4
          • Yes
        • Computer: Specs
        • Experience: Beginner
        • OS: Linux variant
        Re: Ways to learn PHP?
        « Reply #12 on: May 16, 2012, 03:37:26 PM »

        Wuai Bel Ree

          Topic Starter


          Beginner

          Re: Ways to learn PHP?
          « Reply #13 on: May 17, 2012, 09:26:03 AM »
          I want to have a feature on my website where the home page displays a preview of (and obviously a link to) a random article from the site every day (without going out of the border). Can PHP do this?
          Also, can PHP tell how many entries a database has so it can then print the number of entries onto the web page?

          What I'm talking about:


          I want to make sure PHP is all I need to learn.

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: Ways to learn PHP?
          « Reply #14 on: May 17, 2012, 05:03:48 PM »
          Yes it can, is the simple answer.

          Jason_Martin



            Newbie

            • Experience: Beginner
            • OS: Unknown
            Re: Ways to learn PHP?
            « Reply #15 on: June 04, 2012, 11:05:09 AM »
            phpbuddy.com is a best website to learn PHP and you can also clear your doubts from w3schools.com i also have good experience in it.

            Wuai Bel Ree

              Topic Starter


              Beginner

              Re: Ways to learn PHP?
              « Reply #16 on: July 27, 2012, 01:31:53 PM »
              Alright, I've narrowed down what I'm searching for a tiny bit, and that birthday is 3 days away. Anyone know any resource that has exercises, complemented with an answer key, that make me apply what I've learned? You know, the exercises start out easy, then slowly get harder. I think part of the problem I'm having with learning PHP is that I have no idea where to start practicing it, so it'd be helpful to have something telling me what to do. I didn't see anything indicating exercises in any of the resources posted on this thread so far.

              And am I going to need to buy anything outside of a possible book to learn PHP?

              bobsklarservices



                Beginner

              • Time is of the essence.
              • Thanked: 2
                • Certifications: List
                • Experience: Experienced
                • OS: Other
                Re: Ways to learn PHP?
                « Reply #17 on: October 22, 2012, 09:07:12 AM »
                am I going to need to buy anything outside of a possible book to learn PHP?

                I should think not, there's plenty of free PHP hosting out there. Although for testing, I have IIS 7.5 with PHP 5.3 and MySQL 5.5 on my laptop to help me out with all that. Sorry if I'm too late :P
                Work to be all you can be. You define your limits!

                papercupmachine



                  Greenhorn

                  • Paper cup machine
                • Experience: Beginner
                • OS: Windows XP

                TheWaffle



                  Hopeful
                • Thanked: 4
                  • Yes
                • Computer: Specs
                • Experience: Beginner
                • OS: Linux variant
                Re: Ways to learn PHP?
                « Reply #19 on: January 13, 2013, 10:59:51 AM »
                I have bought and read this book and I found it very helpfull.
                http://www.amazon.com/gp/aw/d/1449325572/ref=mp_s_a_1?qid=1358101239&sr=8-2&pi=SL75
                Only downside I found was it didn't cover Ajax.