How to use fopen() in PHP to write passwords to txt -
i want have script receives post php script append contents (username in case) file called passwords.txt exists in same directory script. print there check post successful (it is). here's code:
</html> <body> <?php $indo=$_post["username"]; $handle=fopen('/usr/share/phpmyadmin/passwords.txt',"a"); print($_post["username"]); fwrite($handle, $indo); fclose($handle); ?> </body> </html>
Comments
Post a Comment