- strpos: documentation ( source)
- md5: documentation ( source)
<?php
$username = "test";
$password = "\n";
$authString = $username . " " . md5($password);
$file = "test\n";
echo $authString;
if (strpos($file, $authString) !== FALSE ){
echo "LOGIN SUCCESS";
} else {
echo 'INCORRECT CREDENTIALS. TRY AGAIN';
}