Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Learning PHP

  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Learning PHP

    I am reading "PHP and MySQL For Dynamic Websites" by Larry Ullman. very well written i am about quater the way through and i have a good understanding of how a script works so i can anaylse a script and know what the script is trying to do. But i thats about it, when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Just practice, practice and practice. Look at example scripts/code you've got and modify them is the easiest way to learn I find. eg, a basic hello world code
    PHP Code:
    <?php
    echo 'Hello World';
    ?>
    can be changed to say the time, date, then add a counter to say how many times the page has been viewed, and slowly work your way up. You'll eventually pick it up and be able to find functions you need to use by google or php.net

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me
    This comes from reading the book, and not doing the exercises. You have to do the exercises if you want to grasp when and what you would use.

    EDIT: On a side note, I think this book is outdated and you should be looking for a PHP5 book, as there are some nice additions that are well worth the upgrade. Not to mention that some things don't work anymore, or different.
    Last edited by aedrin; 04-04-2007 at 03:22 PM.

  • #4
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yea get the latest and greatest.

  • #5
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have the 2nd eddition which is PHP5


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •