Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Fastmail link with OTP (See related posts)

PHP code to read OTP from a file and create a link to Fastmail

<?
$otp_file = "somefile.txt";
$trimmed = file($otp_file);
$otp = array_shift($trimmed);
file_put_contents($otp_file, $trimmed);
echo <a href='https://www.fastmail.fm/mail/?FLN-UserName=********;FLN-Password=" . rtrim($otp) . ";FLN-SessionTime=1800;FLN-NoCache=1' target='_blank'>Login</a>
?>

You need to create an account or log in to post comments to this site.


Click here to browse all 7309 code snippets

Related Posts