Latihan PHP 1 – file index

<!DOCTYPE html>
<html>
    <head>
        <title>latihan web :D</title>
    </head>
    <body>
        <table style="width: 80%;margin-left: 10%; margin-right: 10%; margin-top: 5%;">
            <tr>
                <td colspan="2" style="vertical-align: top; border: solid 1px black;">Header</td>
            </tr>
            <tr>
                <td style="width: 20%; vertical-align: top; border: solid 1px black;height: 400px;">
                    menu
                </td>
                <td style="width: 60%; vertical-align: top; border: solid 1px black;height: 400px;">
                    konten
                </td>
            </tr>
            <tr>
                <td colspan="2" style="vertical-align: top; border: solid 1px black;">
                    footer &copy; 2014
			<strong style="float: right;font-size: 10px;padding: 5px;">
                        <?php
                        $start = microtime(true);
                        // Do something
                        //sleep(2);

                        $end = (microtime(true) - $start);
                        echo "elapsed time: $end";
                        ?>
                        </strong>
                </td>
            </tr>
        </table>
    </body>
</html>

Pendukung : WEB SERVER(Apache/IIS), DBMS(MySql/PostgreSQL/DB2),PHP dan yang pasti komputernya jangan lupa 😀

Pertama-tama kita coba bikin file index terlebih dahulu(hahahhaaa klo punya yang lebih bagus dari ini sok dipake :D) simpan kedalam root folder web server kalian atau sebelumnya siapkan sebuah folder latihan kita 😀 disini saya buat folder dengan nama “wp”. Jadi urutan folder latihan kita akan seperti ini :

wp: index.php

Advertisements
This entry was posted in php and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s