Re: What is the learning curve for PHP?



K.J.Williams wrote:

Hello,

A friend and I want to learn PHP but we have two totally different
programming backgrounds.
I have experience with procedural programming in C, and he has
experience with Visual BASIC.
Well we wanted to know, what type of learning curve ( of difficulty )
we would have trying to learn PHP?
Also, What will be the most significant changes for us to adapt to? I
wanted to know if PHP is like
bash shell scripting for Linux?

Thanks
KJW

Hi,

You have both a good background to start learning PHP fast.
In PHP you can work procedural. If you are confortable with the language,
you can start OOP too (no need, just another way of programming, cleaner in
some aspects).

PHP is easy to pick up.

Things to focus on from the start (in my humble opinion)
- Understand HTML forms
- Understand how PHP receives information (superglobal $_GET[] and $_POST[])
from the forms.
- keep paying attention to php.ini. It may seem like a dull piece of
settings in the beginning, but you'll understand more of it as you learn
more PHP. Just keep coming back there. :-)
- use www.php.net always to lookup functions.
Pay attention to the often usefull comments by other users.
- Get a good book (O'Reilly has a few good ones)
- If you recycle other people's code, never copy/paste, but just
rebuild/retype it yourself, using the examplecode only as a reference.
(This increases understanding in my opinion)
- If you plan on using a database, beware SQL injection. This involves
understanding of the database, php.ini (magic_quotes and such), and make it
a habbit of echo'ing all your SQL untill you are comfortable you know what
happens.
- Get a nice editor with syntax highlighting.
- important: make sure you let PHP see all the errors/notices/warning/etc.
(Again in php.ini: error_reporting)
- When confused, come to comp.lang.php, but you found that place already.
;-)
We have an active helpfull community here. This group is one of the
friendliest and helpful usenetgroups I have seen. You never have to wait
long for a response.

And of course: Enjoy!

Regards,
Erwin Moller


.



Relevant Pages

  • Re: A Lot of Questions from a Noob
    ... OOP is a language paradigm that is not specific to ... I Google'd for an introduction to object-oriented programming, ... Watch out for the die-hard Perl fanbois: ... PHP 5 OOP has come a long way from PHP 4. ...
    (comp.lang.php)
  • Re: What Next?
    ... Thanks Peter and everyone who responded, ... create webpages: First, proprietary pages for myself, and second, webpages ... since I want to be able to draw graphs from php. ... of programming and the software ...
    (comp.lang.php)
  • Re: PHP as a secure language? PHP worms? [was: Re: new linux malware]
    ... _Programming Languages: Concepts and Paradigms_ he defines some of the paradigms of programming languages; on pp 12-13, ... This book is classic but doesn't list Perl or PHP or Java -- but the concepts are the same. ...
    (Bugtraq)
  • Re: What is the learning curve for PHP?
    ... I was thinking about learning PHP, ... write scripts that produce client applications like Java? ... I have experience with procedural programming in C, ... PHP is a much higher level language than C. ...
    (comp.lang.php)
  • Re: [PHP] New to PHP question
    ... just learning PHP from what is arguably not one of the best books on PHP ... Yes, I know, they should learn proper programming practices from the ... beginning, blah blah blah. ... but I suggest that once you get beyonds the basics ...
    (php.general)