The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Learning PHP

GiantRoboGiantRobo Registered User regular
edited April 2007 in Help / Advice Forum
In my Votec class we just started PHP, I was wondering if you guys could tell me of some good sites with tutorials, as htmlgoodies isn't being very helpful for my current situation. I have a simple hello world right now that I need to get working, but I have no idea what error on line two it keeps giving me is. D:

Thanks in advance.

GiantRobo on

Posts

  • SpackleSpackle Registered User regular
    edited April 2007
    I always use this is a reference:w3schools

    Definitely straight and to the point. I mostly figured out PHP as I went along (never the best route) with google, there are tons of references.

    PHP is a lot of fun, especially if you want to get into some OOP

    Spackle on
    Taco Bell does win the franchise war according to the tome of knowledge that is Demolition Man. However, I've watched Demolition Man more then a few times and never once did I see WoW. In conclusion Taco Bell has more lasting power then WoW.
    D&D Metal Thread: HERE
  • RoundBoyRoundBoy Registered User regular
    edited April 2007
    php.net

    The docs on individual functions are 99% of all you need. To get started with php, break up what you want to do into sections. Create a php page to start writing some output.... then make the output dynamic... then pull something from a db connection, etc.. all depends on what you need to do.

    In the case of errors.. the message really does give a lot away. and 99% of the time the error is on the line BEFORE the one in question.. due to the fact of missed quotes or terminators.

    Check for ending ' ; ' on each line
    check proper quotes
    functions spelled correctly ?
    vars begin with $ ?

    Get an editor with syntax highlighting... its a god send

    RoundBoy on
    sig_civwar.jpg
    Librarians harbor a terrible secret. Find it.
  • Jimmy KingJimmy King Registered User regular
    edited April 2007
    I generally just use the docs on php.net when I have to do something with php. They've got examples of most stuff along with user comments that sometimes help to clarify things.

    Also, with something as simple as a Hello World program it may be easiest to google for an example of a working one and then compare that to yours to see what is different. Then experiment and do some more googling to find out why that difference broke it.

    Jimmy King on
  • krlkrl Registered User regular
    edited April 2007
    RoundBoy wrote: »
    php.net
    Seconded/thirded.

    Just type php.net/functionname in your browser for quick access, for example http://php.net/echo

    krl on
  • mrcheesypantsmrcheesypants Registered User regular
    edited April 2007
    www.phpfreaks.com is a good php community. It also has some decent specific tutorials.

    mrcheesypants on
    Diamond Code: 2706 8089 2710
    Oh god. When I was younger, me and my friends wanted to burn the Harry Potter books.

    Then I moved to Georgia.
  • kevbotkevbot Registered User regular
    edited April 2007
    If you're looking into PHP for the first time, I'd suggest CodeIgniter. It's a really slick, simple and fast framework for web development. It's generally the most logical piece of software I've ever seen...

    And again, php.net is a great resource.

    kevbot on
    Your music is bad, and you should feel bad!
  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    edited April 2007
    I am a shitty, shitty programmer but I was able to learn enough about PHP in an afternoon to build a simple PHP widget using arrays and CSV files using just the documentation at php.net, without cribbing anybody else's code.

    Feral on
    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
  • ÆthelredÆthelred Registered User regular
    edited April 2007
    Æthelred on
    pokes: 1505 8032 8399
Sign In or Register to comment.