I can’t find any clue how to save textarea etc. to .php file on the server with special encoding. Is exist any library/framwework method/class? I hope that you will understand me, what I mean.
ps. Textarea save *.php on the server 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
file_put_contents. The encoding on the created file should be the same as the encoding on the POST data.Warning: what you’re trying to do looks dangerous! It has the potential to allow anyone to create and run arbitrary PHP code on your server!