Is there a way to create a file with PHP when fopen is disabled? Other functions to access the file system are enabled such as file_get_contents().
Is there a way to create a file with PHP when fopen is disabled?
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.
look up file_put_contents()… though if fopen has been disabled it may also be disabled. Getting and putting files are two different things from a permissions perspective.
And if fopen has been disabled, I can’t imagine that exec() hasn’t also been disabled.