Guide to begin with PHP

Discussion in 'PHP' started by leulae, Dec 31, 2009.

  1. #1
    (New To PHP) I want to create a Web based program to collect data, Hope to Use PHP, MySql, I need build good authentication system. Provide good security for data, and how to make available components like java script or any Calander, Please Advise Me.

    And why put @ sing before commands (eg: $res = @fopen($fileName, 'w+b');)

    Many thanks

    Leulae
     
    leulae, Dec 31, 2009 IP
  2. QuackWare

    QuackWare Member

    Messages:
    245
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Heres some Free PHP Samples that can help you understand syntax and general use of the language as well as helping out in specific cases.
     
    QuackWare, Jan 1, 2010 IP
  3. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm where I am from lots of reading. Usually, from PHP scripts that people have written.

    As for the @ symbol in PHP, it means that it won't shout back at you if an error occurs.. lol. If the function has an error, it will simply ignore the fact that an error occurred and just continue on with the script.
     
    CodedCaffeine, Jan 2, 2010 IP
  4. rbailey83

    rbailey83 Active Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #4

    Thanks for the link, i am also looking to learn php, i will go through the site and hopefully it will help me, can you recommend any good books as well?
     
    rbailey83, Jan 2, 2010 IP
  5. szhang

    szhang Banned

    Messages:
    754
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Very helpful site, thanks again for the link
     
    szhang, Jan 2, 2010 IP
  6. iAreCow

    iAreCow Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #6
    PHP A Beginners Guide (by Vikram Vaswani)
    O'Reilly - Learning PHP 5 (ISBN 0-596-00560-1)

    Once past these, go for O'Reilly - PHP Cookbook (ISBN 1-56592-681-1)

    And as always: php.net and google.com
     
    iAreCow, Jan 5, 2010 IP
  7. Obulus

    Obulus Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The best way to learn in my opinion, is to set yourself a small project, and develop it. google it, pick new things up, and then put it all together. Go back through it and change earlier things as you learn new skills, etc. That's the way I learnt anyway.
     
    Obulus, Jan 6, 2010 IP
  8. iAreCow

    iAreCow Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #8
    True, I started to just open up scripts (the easy ones first, php.net examples and such), but in my vision it would be better to read/go through a few books first so you get the idea of how things work, then try to remember what php's default functions are and do, so when you need to split a string into arrays at special characters, you can say "explode() can do that!"
     
    iAreCow, Jan 6, 2010 IP
  9. clox.c

    clox.c Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The PHP website is also a good start point! ;)
     
    clox.c, Jan 7, 2010 IP
  10. cheap_seo

    cheap_seo Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    there is an site php.net & w3schools.com they r really a best websites to learn the facts of PHP...... try that...
     
    cheap_seo, Jan 7, 2010 IP
  11. einsteinsboi

    einsteinsboi Well-Known Member

    Messages:
    1,122
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    140
    #11
    I think one of the best places to start your PHP learning process is PHP 101 by Vikram Vaswani - http://devzone.zend.com/node/view/id/625

    This alone will give you a good grasp on PHP. Then you can buy some books to augment, or visit other websites and work through more advanced tutorials.
     
    einsteinsboi, Jan 8, 2010 IP
  12. banibratamitra

    banibratamitra Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #12
    @ means to ignore if any error to the function:eek:
     
    banibratamitra, Jan 8, 2010 IP
  13. ATTRACTI

    ATTRACTI Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Good book is worth it. php.net is the simplest and best place to start.
     
    ATTRACTI, Jan 8, 2010 IP
  14. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #14
    To the OP. This.

    Please don't use @ to silence errors. Instead, invest the time in learning how to capture errors, document them and give the user a proper error page. When you silence the errors, your users may end up with an infuriating white page should a fatal error occur.
     
    Altari, Jan 8, 2010 IP