dynamique_html-php - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of dynamique_html-php.php
- <!doctype html>
- <html lang = "fr">
- <head>
- <meta charset = "utf-8">
- <title>Titre de la page</title>
- </head>
- <body>
- <!-- contenu de la page web -->
- <!--<img src = "https://wtools.io:images/wtools.svg">-->
- <header style = "height:100px; background-color: rgb(255,170,50)">
- <img src = "https://www.imt-atlantique.fr/sites/default/files/imt-atlantique.png" align="right"; style = "width:150px">
- <?php
- $time_start = microtime(true); /* car microtime est par défaut une String, il faut donc l'avoir en float*/
- $infos['nom'] = "DUPOND";
- $infos['prenom'] = "Jean";
- $infos['age'] = 25;
- print $infos['nom']."<br>";
- print $infos['prenom']."<br>";
- print $infos['age']."<br>";
- $time_end = microtime(true);
- $time = $time_end - $time_start;
- echo "Ce bloc a pris $time secondes pour s'executer\n";
- ?>
- </header>
- <section style = "height:70%; background-color: white; text-align: left; padding: 1px; margin: 1px; font-family: Helvetica">
- <?php
- $infos['url'] = "http://www.jeandupond.fr";
- echo 'Page perso : <a href='.$infos['url'].'>http://www.jeandupond.fr</a>'."<br>";
- echo 'Ca a pris '.microtime().' s <br>';
- ?>
- Etc... <br>
- <br>
- <br>
- <br>
- </section>
- <footer style = "height:15%; background-color: grey; text-align: center;font-family: Arial">
- <f1>
- <?php
- echo "Nous sommes le ".date('j F Y')." et il est ".date('h\hi A')."<br>";
- $time_end = microtime(true);
- $time = $time_end - $time_start;
- echo "Cette page a pris $time secondes pour s'executer\n <br>";
- ?>
- </f1>
- <f2> <em> © 2016-2017 Jean Dupond </f2>
- </footer>
- </body>
- </html>
File Description
- dynamique_html-php
- PHP Code
- 28 Feb-2024
- 1.99 Kb
You can Share it:
Latest PHP Pastes