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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -