PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 18, 2022

[FIXED] fopen("php://input", "r") returns 0

 February 18, 2022     fopen, mamp, php     No comments   

Issue

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.


Solution

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



Answered By - Yuseferi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing