Learning "php"

DY357LXDY357LX Playing since day 1. Still can't Comm.England Join Date: 2002-10-27 Member: 1651Members, Constellation
<div class="IPBDescription">Where Is A Good Place To Start?</div> A friend of mine wants me to help maintain his site for him.
"Sure" i said, afterall he does lend me lots of games and
sells me them very cheap.
Its just that I presumed his site was .html.... it's not. It's php.
So now i'm on a mission to learn the basics of php.

Can anyone point me in the direction of some tutorials
or examples or something "nubcaek" friendly please?

Don't worry, Google is my next stop, I just thought i'd
ask here in the hope that someone could point me towards
nub specific tutorials.

Thanks

Comments

  • esunaesuna Rock Bottom Join Date: 2003-04-03 Member: 15175Members, Constellation
    <a href='http://www.php.net/' target='_blank'>php.net</a>

    The official manual is more than useful. If there's any functions or whatever, it explains them all in depth with examples of how they're used. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • Billy_SilverfishBilly_Silverfish Join Date: 2003-04-20 Member: 15688Members
    ^^^ what esuna said. Also, if you want a good noob-friendly php book I found Larry Ullman's PHP & SQL book in the "Visual Quickpro Guide" series very helpful.
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    I suggest picking up a BOOK and reading that, not using some crappy online tutorials. They never teach you how to do things properly. And sometimes its just nice to have a paper reference. So just make a trip to the book store and pick one up.
  • Chaos_LlamaChaos_Llama Join Date: 2004-04-23 Member: 28124Members
    Its a huge help to understand and know some html first, because a lot of php builds off that. Also take a look at MySQL.
  • SoulSkorpionSoulSkorpion Join Date: 2002-04-12 Member: 423Members
    edited June 2004
    HTML is pretty much a prerequisite (after all, PHP stands for "PHP: Hypertext Preprocessor". Yes, that's a recurring acronym).

    I learned fine from the PHP manual. 'cept it's like my fifth or sixth language, by now, and I also re-did some Java tutorials from uni, in PHP. But regardless, the PHP manual is actually quite acceptable to learn from (unlike cerain other scripting languages' manuals, I could mention *cough*PERL*cough*).

    Oh, PHP is, uh, multiplayer only. So ask your friend if he can set up a space for you to learn on. Unless you want to install Apache and PHP on your machine at home, that is.

    Anyway, I wouldn't worry about learning SQL. Yeah, it's useful in web development, but unless you actually <i>need</i> it, I wouldn't bother. You probably won't need it if you're just helping a friend with his website.

    Oh, almost forgot. One very important thing: PHP is a proper scripting language; it's not simply markup like HTML. It'd be a hell of a lot easier to learn it if you already have programming experience (although... seem to remember that you do, don't you?). PHP is especially nice because its syntax mimics C++\Java, <i>or</i> BASIC\Pascal, depending on which you want to use. It lets you use {} style braces <i>and</i> <span style='font-family:COURIER'>if endif</span> blocks <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • littlewildlittlewild Join Date: 2002-11-20 Member: 9467Members
    I distinctly remember that PHP started off as "Personal Home Page" or something.

    Any way, if you are going to get a book, I'd recommend Wrox's Beginnging PHP 4.
  • DY357LXDY357LX Playing since day 1. Still can&#39;t Comm. England Join Date: 2002-10-27 Member: 1651Members, Constellation
    Thanks for the replies. Esuna's link has been bookmarked
    and i'll pop into my local WHSmith for a look at what PHP
    books they have later on today.
    I have a decent knowledge of html so hopefully this should
    help. Again, thanks for the posts. Much appreciated!
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    PHP is a programming language, not just HTML.

    If you have any experience with C++ or Java, PHP is cake. If you've never had ANY programming whatsoever before, it is a pretty big learning curve, so be prepared for that.

    To say that PHP is good for nothing but web pages is silly. We use it for tons of things that never touch HTML at work every day.

    <img src='http://www.unknownworlds.com/forums/style_images/TSA_Skin-975/icon12.gif' border='0' alt='user posted image' /> PHP
  • ComproxComprox *chortle* Canada Join Date: 2002-01-23 Member: 7Members, Super Administrators, Forum Admins, NS1 Playtester, NS2 Developer, Constellation, NS2 Playtester, Reinforced - Shadow, WC 2013 - Silver, Subnautica Developer, Subnautica Playtester, Pistachionauts
    The book I am using and finding to be pretty good at explaining and showing is called 'PHP and MySQL Web Development' by Luke Welling and Laura Thomson (Second Edition). As you can the first 5 chapters or so are PHP, while the rest of the book deals with tieing it all into MySQL, which may not be what you need.
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    edited June 2004
    Does his site use MySQL? If it does, you'll see it's nothing hard, but it takes some time to understand. I think I fully understood the potential of this with one example of code (forums in a tree style). When I saw in the book "creating a forum" I thought "OMG"... and when I saw the code was pretty simple and very short I really started to <3 MySQL <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
    PHP is really more useful for websites when you use it with MySQL.

    Right now I can do things like <a href='http://hlpbm.free.fr/fs/batbal.jpg' target='_blank'>that</a> <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> And yes it's a chat and a battleship like game. Everything was made with PHP and MySQL <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->

    BTW, PHP started as "Personal Home Pages" but it became more and more popular and they renamed it to "Php: Hypertext Preprocessor"


    EDIT: Why can't I post 4 smileys? that's..... dumb
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    edited June 2004
    <!--QuoteBegin-Comprox+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Comprox)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->As you can the first 5 chapters or so are PHP, while the rest of the book deals with tieing it all into MySQL, which may not be what you need.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    But it will be. If you code PHP, using MySQL is pretty much inevitable. You WILL use it sometime or another. :P
  • SycophantSycophant Join Date: 2002-11-05 Member: 7092Members
    My vote is for <a href='http://www.amazon.com/exec/obidos/tg/detail/-/0672326191/qid=1087263619/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-3044581-5516926?v=glance&s=books&n=507846' target='_blank'>this book</a>. I've got the 2nd edition (amazon link is 3rd edition), and it's great for just about anyone - beginners who know nothing of the language, intermediate folk who've done some tinkering but want more info, and for the guru's who just want a reference.

    Great book, covers all the essentials plus introduces some really cool new developments and gives resources to keep learning about those if you're interested.
Sign In or Register to comment.