Beginner
    Image

    PHP is a programming language (♦ see DEF.multiplatform and object oriented, created in 1994.

    It allows you to create Dynamic Web Pages on a HTTP server.

    MYSQL is a relational database management system (RDBMS), regularly associated with PHP.

    Code Examples

    We start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be.

    C 0001 - Hello World !

    Say hello...
    <!DOCTYPE html>
    <html>
    <body>
    <?php
    echo "Hello World !";
    ?>
    </body>
    </html>

     

    ⇒ See the results

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0002 - Playing with values

    Use variables...
    <!DOCTYPE html>
    <html>
    <body>
    <?php
    $color = "green";
    echo "My basket is " . $color . "<br>";
    $color2 = "red";
    echo "My book is " . $color2 . "<br>";
    ?>
    </body>
    </html>

     

    ⇒ See the results

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0003 - Playing with variables

    Use the numbers...
    <!DOCTYPE html>
    <html>
    <body>
    <?php
    $txt = "Hello, see the results !";
    $x = 50; $y = 10.5;
    echo $txt; echo "<br>";
    echo $x; echo "<br>";
    echo $y;
    ?>
    </body>
    </html>

     

    ⇒ See the results

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    C 0004 - Playing with numbers

    A small calculation...
    <!DOCTYPE html>
    <html>
    <body>
    <?php
    $x = 50;
    $y = 65;
    echo $x + $y;
    ?>
    </body>
    </html>

     

    ⇒ See the results

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

    When you copy your code, replace the existing code (by default) with your own.

    Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

    Info+

    Creation
    » Creation date: 1991
    * Created by Guido van Rossum
    * Developed by Python Software Foundation

    * Influenced by Java
    * Cross-platform
    * Free license (Python Software Foundation License)

    Tools & Levels

    Software & Frameworks

    Practical cases

    In order to train you, we add small programs every week to this section in order to keep you up to speed.

    CASE 1

    BASIC LEVEL

    Print a selection according to age

    This little program will allow you to choose, according to the variables you have added yourself, the usernames to print.

    TRY

    CASE 2

    INTERMEDIATE LEVEL

    Create a database (customers)

    This little kit will allow you to design a database to manage a basic customer portfolio.

    TRY

    CASE 3

    EXPERT LEVEL

    Develop a news App.

    Design and develop an application with Android Studio, managing content hosted by a resource website on a classic Web server (Hybrid App.).

    TRY

    2021 (C) Fond of Code tm (official trademark) - Reflex002 / Diego Piccini (da Todi).
    All rights reserved. Protected editorial content (www.theethicalweb.com) / INPI France.

    About Us...

    About Us...
    Reflex002

    O-O
    Programming
    Development

    Main Topics

    Main Topics

    Legal/Support

    Legal/Support
    Image
    © Copyright 2022 Reflex002. Designed By Art and Earth Networks and Technology / Diego Piccini / Piccini da Todi G&D Studio