Posts

Posts mit dem Label "php" werden angezeigt.

PHP - Simple read file

Read file from disk Mit folgender Anweisung lie0t man eine Datei aus. <?php print_r(file($_POST["name"])); ?>

PHP - Simple PHP Counter

Simple php Counter  <?php $datei = fopen("counter.txt","r+"); $counterstand = fgets($datei, 10); if($counterstand == "")    {    $counterstand = 0;    } if($counterstand == "999999")    {    $counterstand = 0;    } $counterstand++; echo $counterstand; rewind($datei); fwrite($datei, $counterstand); fclose($datei); ?>

PHP - Simple password protect

Php - Simple password protect  This is just a reminder page for me. <?php $username = $_POST["username"]; $passwort = $_POST["passwort"]; $pass = md5($passwort); echo $pass; if($username=="userName" and #pass = asd $pass=="7815696ecbf1c96e6894b779456d330e")    {    echo "<br>Herzlich Willkommen";    } else    {    echo "<br>Login Fehlgeschlagen";    } ?> <form action="password.php" method="post"> Benutzername:<br> <input type="Text" name="username"><br><br> Passwort:<br> <input type="Password" name="passwort"> <input type="Submit" value="Absenden"> </form>