json - PHP write get variables to .txt file not working, no errors -


i using php capture variables write them text (.txt) file can later open file , variables.

all of code listed below, not write file , no errors giving, reading.

<?php  //the link (your domain)/writefile.php?user=$user&password=$pass  $theuser = $_get["user"]; $thepassword = $_get["password"]; $full = $theuser . ':' . $thepassword; echo htmlentities($full); //potential xss $file = 'crackedaccs.txt'; $current = file_get_contents($file); $current .= "$full \n"; file_put_contents($file, $current, lock_ex);  ?> 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -