This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>FindThePrecious</title> | |
</head> | |
<body> | |
<header> | |
<h1>FindThePrecious.com</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Gandalf</title> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="caption"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="style.css"> | |
<meta charset="utf-8"> | |
<title>L'oeil de Sauron</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vince@Vince:~$ ls | |
Desktop Downloads Music Public Templates wilder | |
Documents examples.desktop Pictures quetes Videos | |
vince@Vince:~$ ls Downloads | |
vince@Vince:~$ ls Pictures | |
vince@Vince:~$ pwd | |
/home/vince | |
vince@Vince:~$ cd .. | |
vince@Vince:/home$ pwd | |
/home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$titre="Indiana Jones and the Last Crusade"; | |
echo "$titre", '<br>'; | |
$visionnage=true; | |
if ($visionnage==true) | |
{ | |
echo "La réponse est OUI", '<br>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$weapons = ['fists', 'whip', 'gun']; | |
$opponentWeapon = $weapons[rand(0,2)]; // Cela permet de choisir une arme de manière aléatoire. | |
// TODO | |
$indyWeapon=array(); | |
if ($opponentWeapon=='fists') | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$message="0@sn9sirppa@#?ia'jgtvryko1"; | |
$length=strlen($message); | |
$keyData=strlen($message) / 2 ; | |
$rest=substr($message, 5, $keyData); | |
$replace=str_replace("@#?", " ", $rest); | |
echo strrev($replace), ' '; | |
$message="q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$film=[ | |
'Indiana Jones et le Royaume du Crane de Cristal' => ['Harrison Ford', 'Cate Blanchett', 'Shia Leboeuf'], | |
'Indiana Jones et la Derniere Croisade'=> ['Harrison Ford', 'Sean Connery', 'John Rhys-Davies'], | |
'Les aventuriers de l Arche du perdue'=> ['Harrison Ford', 'Karen Allen', 'Paul Freeman'], | |
]; | |
foreach ($film as $key => $value) { | |
echo "Dans le film $key, les principaux acteurs sont : "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function writeSecretSentence(string $PARAMETRE_1, string $PARAMETRE_2){ | |
return "$PARAMETRE_1 s'incline face à $PARAMETRE_2"; | |
} | |
echo writeSecretSentence("La lune", "au feu"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_POST){ | |
//not empty | |
// | |
$errors = array(); | |
//start validation | |
if (empty($_POST['nom'])) { |
OlderNewer