1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Best way to learn PHP basics

Discussion in 'PHP' started by ChuckD, Jul 20, 2006.

  1. #1
    Hi,

    Can anyone suggest the best way to go about learning some basic PHP coding?

    I have recently begun work on a website and trying to take the easy option, being a newbie to website design, I purchased a template which is coded in PHP.

    I am trying to customise my template to make it more original, using Dreamweaver as an editing tool. I can handle some of the very basic changes through trial and error etc but I would really like to gain some basic knowledge of PHP which would help me in this sort of task.

    Any reccomendations of where to start?

    Thanks.
     
    ChuckD, Jul 20, 2006 IP
  2. Christopher

    Christopher Peon

    Messages:
    482
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you do a search you will find quite a few 'getting started in php' tutorials online... things that have you do the basic "hello world" thing. That will teach you enough to get started.

    Then dig into your project and try to piece things together. When you get stuck, go to experts-exchange.com and ask questions. Lots of very good (and cheap) help there.

    Understand though, you will learn things here and there and be able to do quite a bit. But for a really thorough knowledge of php you'll probably have to sit down with a php manual. I've never had the patience for that myself though :)
     
    Christopher, Jul 20, 2006 IP
  3. digigraph

    digigraph Guest

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would go to w3schools.com. They have nice PHP tutorials that teach most of the things you need to know about PHP. Then you shoud start playing around with it. Personally, I started gaining PHP knowledge trhough installing modifications with step by step guides and slowly knowing what they mean.
     
    digigraph, Jul 20, 2006 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,757
    Likes Received:
    4,519
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Throw out Dreamweaver and read the posts here for a better IDE (code editor).

    Run through tutorials

    Get some code from sourceforge and adapt it to your needs - as you see code you don't understand go to www.php.net and find out what it does.
     
    sarahk, Jul 20, 2006 IP
  5. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #5
    Mystique, Jul 20, 2006 IP
  6. -tcwd-

    -tcwd- Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would suggest trying to make a full PHP website.. which requires the use of many functions. As you go along, there will be many moments when you have to use google to search for what you want. Eventually you'll find it and learn from it.

    After you attempt or complete the website, you'll find yourself a lot more knowlegable :)
     
    -tcwd-, Jul 20, 2006 IP
  7. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i learn better by doing.. since i was already experienced in C and java, i just learned php by making a shopping cart system.

    the language is fairly straight forward and if i needed to learn something i just searched for the phrase "if then statements in php" on google and figured out how to do it. started out a little slow but i learned pretty quick.
     
    klown, Jul 20, 2006 IP
  8. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #8
    coderlinks, Jul 21, 2006 IP
  9. Boby

    Boby Peon

    Messages:
    207
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Practice is your best friend :)
    You can read as many tutorials as you want, but you have to apply each little thing in practice and you'll see how fast the results are comming ;)
     
    Boby, Jul 21, 2006 IP
  10. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Oh yea... I did make a small CMS-like thingy to practice, but it never went well... :D . Like see this page for example

    http://tomsdemo.awardspace.com/

    The menu is dynamically generated from database and the pages are also stored in database. The web-links list is also dynamically generated. But the problem is that I haven't designed any page ^_^ . I just forgot about that site...

    Thomas
     
    coderlinks, Jul 21, 2006 IP
  11. Koncept

    Koncept Peon

    Messages:
    50
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I learned the basics from the manual at php.net
     
    Koncept, Jul 21, 2006 IP
  12. Jayson

    Jayson Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    If you are someone with no programming experience at all and no, as I lke to call it "nerd-tendancies", the PHP Manual is the wrong way to go.

    I learned the basics from Kevin Yank's "Build your own Database Driven Website with PHP and MySQL". The code he writes isnt too great, but it serves its purpose well in explaining PHP Basics to you. Yank is also a great teacher, he explains the code very very well.

    I then graduated to tutorials at phpfreaks and spoono, as well as the book "PHP and MySQL Webdevelopment" from I think Sams publishing. The rest is just practice practice practice
     
    Jayson, Jul 23, 2006 IP
  13. windtalker

    windtalker Well-Known Member

    Messages:
    926
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    145
    #13
    windtalker, Jul 24, 2006 IP
    coderlinks likes this.
  14. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #14
    WOW, Thats one cool site!! I have only heard of SQLite before and only now do I realise its power. This is one cool tutorial!! The SimpleXML tutorial is also really cool. Just goes to show that you can never know everything about something :D . Wish I could make sites like those. Think of the traffic I would get... [Goes off to dream up more stupid ideas....] :D

    Thomas
     
    coderlinks, Jul 25, 2006 IP
  15. JBauer

    JBauer Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I remember when I first started coding php....

    I made the worst code ever. It gradually improved as I learned more by simply coding more often. I came up with similar projects and just coded.

    There are a lot of solutions out there already for day to day things, so always search for a solution before writing it yourself!
     
    JBauer, Jul 25, 2006 IP
  16. Lukaslo

    Lukaslo Peon

    Messages:
    751
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Lukaslo, Jul 25, 2006 IP
  17. programmer

    programmer Guest

    Messages:
    444
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #17
    you must start with w3schools. its the best site for start.
     
    programmer, Jul 25, 2006 IP
  18. Jak

    Jak Member

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #18
    I agreee with this as it's how I learned pretty much every coding language I know. Jot down some notes for a site you'd like to make (nothing overly crazy though) and then go about putting it together. You'll learn PHP along the way and when you're finished you'll have something you're really proud of.
     
    Jak, Jul 25, 2006 IP
  19. usa news

    usa news Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Choose PHP-Mysql training course and build your Career in IT Sector.

    Here you come, if you are from technical background (B.tech, BCA, Bsc(comp) or any other programming background) you must join us for website development training, we can provide you best php training and jobs in kolkata, non-technical guys are also welcome to us, they can also take step toward php mysql training, we can help them as well to get a right step. We also run summer training in kolkata with php-mysql programmings.
     
    usa news, May 27, 2011 IP
  20. m0nster

    m0nster Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    i learned by reading a book called PHP In easy steps, and also by looking at other peoples source code
     
    m0nster, Jun 2, 2011 IP