gigagames Posted November 2, 2015 Share Posted November 2, 2015 Hello,if i use filter_input(INPUT_SERVER, 'REQUEST_METHOD'); it returns nothing. $_SERVER['REQUEST_METHOD']Works finde, why it doint work whit filter_input ? Server: johnny Quote Link to comment Share on other sites More sharing options...
wolstech Posted November 11, 2015 Share Posted November 11, 2015 Filter_input is known to have issues on some servers where it erroneously returns null when INPUT_SERVER and INPUT_ENV are used as the type (the other choices do work properly). People in the comments on PHP's site suggest using $_SERVER to avoid the bug. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.