I have the line
$input = fopen( "php://input", "r" );
in a php script and I can’t figure out why it is returning 0. It is only doing so on my local MAMP set up. I think it is a permission issue but I am not sure what permissions I need to modify.
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.
in some server for security reason allow_url_fopen set 0
in php.ini . search for this string allow_url_fopen and set it to 1 and restart apache service