My code is like this
$fp = fopen('text.php', 'w');
fwrite($fp, $_POST['code']);
fclose($fp);
But if $_POST['code']
has single quotes (') output will be 2 single quotes
for example:
if input is 'test'
if we open text.php output will
''test''
i also tried file_put_contents() but same result How can i solve this problem?
edit
for $_POST['code'];
exit()
also i am getting same output
Try re-installing your lamp server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With