Add to Google

How Did You Start Learning Php?

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #13) by Lightning73 on Nov 7 2008, 05:50 AM. (Line Breaks Removed)
QUOTE(dragonfang00 @ Nov 7 2008, 04:28 AM) hands on is better than any other way of learning a new programming language..just like this:CODE<?phpsetcookie('user', 'username', time()+3600);if (isset($_COOKIE['user'])){    echo "You are logged in: $_COOKIE['user'] Enjoy.... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

How Did You Start Learning Php?

Lightning73
I just learned it by downloading a completed game project coded in PHP, which was full of bugs. Then I started fixing those bugs while figuring out what every function did by just trying and learning.

But you honestly just never end learning PHP, I've been doing it for 5+ years now and yet sometimes I still discover new things to use.

So, tell us, how did you start learning PHP?

Comment/Reply (w/o sign-up)

shadowx
Well i was always interested in computers, hacking, coding etc... so i started leaning HTML. Then i wanted to code one of those 007crush style sites where a user fills in details for a love score or some crap and instead it gets emailed to whoever. I knew HTML so i coded the form but needed to send an email. I tried Javascript but got confirm messages and email clients and all the rest of it so i learned basic GET variables and mail() in PHP. Since then ive worked up to creating whole sites, logins, sessions, file and DB management etc... and still the mail() function is in use wink.gif

I think the ONLY way to lean php is to do it. Theres no point in reading a book because you just copy. Set yourself a task like "i want to make a PHP script to take user input, validate it, and save it to a DB" and then google things like "PHP input validation" "php mysql insert query" and go from there, you will copy some lines, sure, but you will learn a lot of it and repetition will ingrain it in your mind and you wont forget it. Then add to that code like "i want to get that data out of the DB set it into an array, echo that data out in a HTML table, then make links for someone to edit those DB entries, oh and i need an admin login, and session management, MD5 hashing" and so on. It just gets bigger until youve made a complete user login site with user management, mailing lists etc...

If you are reading a book on PHP stop! You need to do it! Read the book to learn the stuff but always do it yourself every time you learn something new practice it!

 

 

 


Comment/Reply (w/o sign-up)

Imtay22
Well, for me, I heard some friends in school who wanted to make a website, so I went to the local library, and checked out like 10 books on making websites and HTML. After reading those books, I made a simple website. On one of the books it had W3Schools, and I went there and learned PHP and SQL. So that's practically how I learned it. I've tried reading PHP, and they don't do anything, really, so I don't recommend them, as said by shadowx above.

Comment/Reply (w/o sign-up)

xpress
Actually I am java programmer. I didn't know anything about PHP. I started designing a website using jsp as my server side scripting. Then I searched for free hosting on internet. I didn't find even a single webhost offering free jsp hosting. But many were providing free PHP hosting. So I started learning PHP on my own. I was really amazed with its simplicity as well as speed. PHP is very easy to use and powerful as well. I started learing PHP by downloading various books and videos available on different websites. Of course, reading is not enough. Practice is very important in programming. Practice is the key for my comfort with PHP.

Comment/Reply (w/o sign-up)

mrdee
That is exactly my point too.
I have a number of books on PHP/MySQL, but all they do is let you copy things.
What I am looking for is a book that explains things to you and then gives you some exercises, eg. it explains about login procedures and then at the end asks you: 'Now write a routine that logs into a Myo things I want to achieve which CoffeeCup cannot do.SQL database, writes a line of data into it, and then emails the results of that inoput back to you', or something the likes of that. I think I have also relied too much on CoffeeCup Web Form Maker to help me out, this definitely makes it easy, but you do not learn from it, and, there are also things i want to achieve which coffeeCup cannot do.
And, Xpress, you had prior knowledge of programming with being a Java programmer, which, I assume made it somewhat easier to learn a different programming language.
All I have is some knowledge of Commodore 64 Basic I learned in the 80s and some Pascal I learned on that same Commodore 64. (Although that was many years ago).
So, if any one has further advice on learning PHP, it will be gratefully accepted.

Comment/Reply (w/o sign-up)

xpress
QUOTE(mrdee @ Oct 11 2008, 04:12 PM) *
And, Xpress, you had prior knowledge of programming with being a Java programmer, which, I assume made it somewhat easier to learn a different programming language.

Yes, I agree. Having a prior knowledge in some programming language will definitely makes it easy to learn a new programming language. But PHP is not hard. You can learn it easily by reading. All just you need is some knowledge in HTML and a database(for example, MySql).

If you know some basic programming skill, for example using if statements, for loops, while loops(these are almost same on all latest programming languages like C,C++,Java and many) functions etc... you are ready to write your programs in PHP by reading any book(Of course not only PHP, but any language). Because these are basics. You should know and understand them. The only way you can understand these basics is practice, practice and practice only. Practice these until you are comfort with them, and you'll find how easy it is to learn PHP. You can use any book you have.

Comment/Reply (w/o sign-up)

mrdee
Thank you for your advice.
Even back in the 80s, the Commodore 64 built in BASIC included if...then statements, for...next loops (do and while came a bit later, but I do to some extent understand them), and then there were also the GOTOs and GOSUBs, as far as that is concerned I should be OK.
I am also fairly familiar with HTML (use it on a regular basis), but one problem I seem to encounter with most books I have about PHP is that they all start with the famous "Hello World" program (ie. a program that prints "Hello World" on your screen), but then they move so fast, and almost immediately the programs become so complex that it is almost impossible to follow.
I also have "PHP and MySQL for Dummies", well, then, that really raises the question, "how many PhDs do you need before being called a 'Dummy').

But anyway, as soon as I have time, i shall put my nose into some books again and try to learn a few things.
Any further advice will obviously always be welcome.

Comment/Reply (w/o sign-up)

EinReaper
I took my first steps in PHP with help from this tutorial: http://www.w3schools.com/PHP/ ; it's really well structured and very easy to follow.
If you don't like to read to much you can always watch the lectures from Harvard's David Malan which you can find right here: http://cs75.tv/
These lectures were a real source of inspiration for me.

Comment/Reply (w/o sign-up)

Evolke
I've only just started learning PHP. Im learning it through Tutorials on a variety of websites. Im just learning the basics, then Im going to move to the bigger stuff smile.gif

Comment/Reply (w/o sign-up)

dragonfang00
for me I learned PHP when i created a blog-like website.. I downloaded tutorials with scripts and studied every functions..

books won't work because for me you will not know how a script will work until you try and make your own using a different script but will make same result..

Comment/Reply (w/o sign-up)

Latest Entries

Lightning73
QUOTE(dragonfang00 @ Nov 7 2008, 04:28 AM) *
hands on is better than any other way of learning a new programming language..

just like this:
CODE
<?php
setcookie('user', 'username', time()+3600);

if (isset($_COOKIE['user']))
{
    echo "You are logged in: $_COOKIE['user'] Enjoy.";
}
else
{
    echo "You are not logged in. <a href='register.php'>Register here</a>";
}
?>


if you're a beginner and will just look on a book you'll never find what is this for.. you should try first a program to know the what the program and the SCRIPT is for..


Lol I've seen a part of that script at least a million times now. It's almost routine to write something along that line of code if I'm writing something in PHP that requires a login system. tongue.gif

Comment/Reply (w/o sign-up)

dragonfang00
hands on is better than any other way of learning a new programming language..

just like this:
CODE
<?php
setcookie('user', 'username', time()+3600);

if (isset($_COOKIE['user']))
{
    echo "You are logged in: $_COOKIE['user'] Enjoy.";
}
else
{
    echo "You are not logged in. <a href='register.php'>Register here</a>";
}
?>


if you're a beginner and will just look on a book you'll never find what is this for.. you should try first a program to know the what the program and the SCRIPT is for..

Comment/Reply (w/o sign-up)

minimcmonkey
I did the same as I always do when learning a new language.
I look for a good tutorial an a reputable site, and learn some of the basics from that.
Then I get some source code from free source code sites, and customize it to learn how it works, and how to change it etc.
Then I bought a couple of books about it, to help learn the difficult stuff, as i often ind the web tutorials not very helpful, and make you assume stuff way to much.
One of the books I bought was the PHP and MySQL bible, and its brilliant, I have bought a few books from that range, and they are all really good!

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2
Recent Queries:-
  1. when did you start learn english - 25.92 hr back. (1)
Similar Topics

Keywords : start, learning, php,

  1. Best Way To Start Learning Php
    (9)
  2. Learning Php
    (12)
    hey People ... i m really interested in Learning PHP Programming .. so plzz cud u suggest me from
    wher should i learn PHP .. There r no Institutes that teach PHP in India ! .. So could u all
    suggest me some real good stuff from wher i cud learn PHP .. As u trapsters r good in PHP .. !! ..
    Thnxzzz `` ! ....
  3. Best Sites For Learning Php-mysql
    (4)
    Hi I was reminded of this earlier by a post in a topic, meant to post it but forgot and the topic on
    php books reminded me. Well anyway there is tyhschools for learning php (unless someone else knows
    a better 1) but I wan't to know what is the best site for using php with mysql (using
    phpmyadmin) also whats the difference between postgresql and mysql? though I must admit the
    postgresql version of phpmyadmin whatever it's called looks better (visually)!....
  4. What Are The Best Books For Learning Php
    Please suggest a book (9)
    I would love some recommendations on what books are most helpful for learning PHP. I know XHTML,
    CSS, some Javascript. I do know some PHP as well. Also can someone also recommend some books on
    Advanced PHP, that actually shows how to create a fully functional and somewhat complex
    website/application. (Like RailSpace does for Ruby on Rails)....
  5. Learning Php -- Where Do I Start?
    I want to learn PHP (17)
    Ok so i have been using html for about two weeks and i was wondering what PHP is and if there is a
    website that you can go to, to learn it. I heard that it is better than html but I'm not really
    sure.....
  6. Good Source For Learning Php
    (13)
    http://www.bicubica.com/ This website explains everything about PHP, right from the basics. it
    also explains about Installing apache and PHP and configuring them. The site is very useful for
    newbies and also experts.....
  7. Learning Php methods
    good books/ideas out there? (9)
    I'm looking to start learning some PHP this summer, I've got a good grip on HTML, given that
    I never read a book on it, and my friend taught me. I'm good in logic and math, and taught
    myself CSS, I only know a tad of javascript, but now I'm getting ready to go to the real stuff.
    HTML and CSS don't allow me to do enough, I want to learn PHP, but I'm not sure I can teach
    myself off of help sites anymore, this seems a bit complicated. One of my friends is learning PHP,
    too, so it will be an advantage to bounce ideas off each other. Anyway, I'm w....
  8. Learning PHP
    Need some assistance (19)
    Hello All, I am learning PHP. I have been reading several tutorials and such but what I am
    wondering is this: is there a site that recomends simple project programs to practice your coding?
    Or can someone recommend a few programs I could write to get better. Kind of like learning it in
    school - after you learn it, you get an assignment to go practice it. Thanks, Dennis....

    1. Looking for start, learning, php,

Searching Video's for start, learning, php,




advertisement



How Did You Start Learning Php?