1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome to Lake Valor!
    Catch, train, and evolve Pokémon while you explore our community. Make friends, and grow your collection.

    Login or Sign Up

Basics of PHP

Discussion in 'The Lounge' started by Toxic, Nov 21, 2012.

Thread Status:
Not open for further replies.
  1. Toxic

    Toxic Idk I'm bored

    Lugia Egg
    (Lugia Egg)
    Level 3
    Joined:
    Nov 21, 2012
    Posts:
    275
    PokéPoints:
    ₽176.8
    A PHP file is always started out with
    Code:
    <?php
    ?>
    
    PHP files must have .php extension so for example the page you are viewing right now is PHP.

    Most PHP files contain some HTML tags and PHP scripting code.

    One of the features used in PHP is echo. Echo sends the text back to the browser.

    Example:
    Code:
    Note: Always start a file with the HTML and Body tags.
    <html>
    <body>
    
    <?php
    echo "Hello Lake Valor!";
    ?>
    
    </body>
    </html>
    Note: End the tags here.
    
    Each code line in PHP must end in a semicolon or it will not work.

    If you have any questions about the basics feel free to ask. If you need more PHP help message me a request and I shall try my best.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Rafael and Jamax like this.
  2. Myuuriko

    Joined:
    Oct 12, 2013
    Posts:
    136
    PokéPoints:
    ₽30.0
    hey now this is useful... PHP seems to be more simpler than Java by the looks of that.

    Java is SUPER case sensitive.> - <
     
  3. MegaUrsaring

    MegaUrsaring Youngster

    Joined:
    Oct 7, 2014
    Posts:
    4
    PokéPoints:
    ₽15.0
    Wow very use full
     
Thread Status:
Not open for further replies.

Share This Page