The file_put_contents() function is disabled for some reason on my server. How do I enable it? And how do I enable/disable PHP functions in general?
The file_put_contents() function is disabled for some reason on my server. How do I
Share
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.
if your on webhosting then it’s disabled for a reason’; you could message their help desk for assistance on this matter. They could help you further, perhaps not enabling this option. But explain why this is disabled.
If you have access to your
php.inithen you can enable the function through that.Else, you COULD (not saying it will 100% work) try the following:
http://php.net/manual/en/function.ini-set.php