Web Analytics Made Easy -
StatCounter Learning PHP - CodingForum

Announcement

Collapse
No announcement yet.

Learning PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Learning PHP

    I've never learnt a programming language before, and I'm trying very hard to learn PHP. I've been reading through some online tutorials and I'm really finding it hard. I'm sure that once I understand it, I will be fine, it's just so difficult. Does anyone have any good tutorials? Or any tips? It's just that I would much rather learn PHP than go on snippet websites and take free scripts. Please help, I don't want anyone to do everything for me, i would much rather be pointed in the right direction.

  • #2
    I think you'll get more from a book than online tutorials. This book is one of the best, in my opinion, for PHP newbies.
    Music Around The World - Collecting tips, trade and want lists, album reviews, & more

    Comment


    • #3
      My advice is to take a formal class, or sit down with someone
      who knows PHP and/or Perl (any programming language) and
      have some basic lessons.

      Comment


      • #4
        my suggestion is a)take a class on program logic, can't do that, b) take a formal programming class, failing that, c) get a "dummies" book, can't get one of those d) get O'Reilly PHP Cookbook

        and be willing to invest a lot of time and looking at other peoples code.

        Comment


        • #5
          First of all it depends entirely on how you learn. Personally I think books are a waste of money especially when there's so much information on the internet.

          The best way to start is by visiting the following sites and then moving onto tutorials of projects that you want to do...i.e don't let other people tell you which tutorials to do first.

          An introduction to php:
          http://uk2.php.net/tut.php

          Basic Syntax:(syntax is just the commands and how to set things out..I think)
          http://www.php.net/manual/en/language.basic-syntax.php
          (N.B do NOT try and learn the syntax parrot fashion just use this link as reference)

          Content management system:
          http://www.intranetjournal.com/php-cms/
          -This is where I started out as it introduces the link between MySQL and php.

          Hope this helps
          Alex
          Give me Rep if I was helpful and ignore if I wasn't ;)

          http://www.google.com <--use this before asking

          Nominate a Helpful Member

          Comment


          • #6
            when youve learned a little php give this a go Wikibooksk PHP Challenge

            Comment


            • #7
              For me, php manual was a very good place to start for reasons:

              1. Php documentation authors designed the manual as short-to-the-point tutorial book rather than explaining language in traditional ways. You can compare php manual with other web lang like perl or any other. You'll find it clearer than others.

              2. Though php has backward compatiblities, there are some issues about upgrading to newer versions. The tutorials on the web do not mention about those issues ; probably coz webmasters are busy to update them. Php manual has complete ref of such issues. So you can adjust your coding functions, considering the php version of your own localhost Vs that of your hosting provider.

              3. Copy-n-Paste: Php manual has both non-ambiguous explanations and example codes. Once you've understood explanations,just copy and paste their example codes in any Php Editors and test and run it.

              If you're now learning php, I suggest you use PHP Expert Editor. Coz it has built-in http server. So you copy and paste code and then run it immediately without saving your practice files.


              My Suggestions are for beginning levels. For higher, you must also learn Databases like mysql and must continue to learn to write complete web application. Also be aware of security issues. If your codes are valunerable, the attackers can surely deface your whole web sites. Even one line of php codes might contain security flaws unless you take care of it.

              Comment

              Working...
              X