koalas Posted February 10, 2018 Share Posted February 10, 2018 I'm making a login system for Unity, and I'm using your hosting website for online testing because it worked in localhost. I uploaded my 2 PHP files that are attached on the bottom and then when I test the login system in Unity it says "Empty" on the registration and "Username or Password cannot be empty." which means that $_REQUEST is not getting any information from the game. I would like a quick answer on how to fix this (it is not an error in the code, definitely)login.phpregister.php Quote Link to comment Share on other sites More sharing options...
Krydos Posted February 10, 2018 Share Posted February 10, 2018 It's probably this: https://stackoverflow.com/a/5701703 Quote Link to comment Share on other sites More sharing options...
Luigi123 Posted February 11, 2018 Share Posted February 11, 2018 Moved to Customer Service. Quote Link to comment Share on other sites More sharing options...
mrj Posted February 14, 2018 Share Posted February 14, 2018 If you are getting informations from a HTML form, then try using $_POST or $_GET instead of $_REQUEST $_GET Not recommended for your script because of security reasons)From php documentation:The variables in $_REQUEST are provided to the script via the GET, POST, and COOKIE input mechanisms and therefore could be modified by the remote user and cannot be trusted. The presence and order of variables listed in this array is defined according to the PHP variables_order configuration directive. Quote Link to comment Share on other sites More sharing options...
koalas Posted February 17, 2018 Author Share Posted February 17, 2018 It's probably this: https://stackoverflow.com/a/5701703anddd.... how could I find php.ini in the file manager? Quote Link to comment Share on other sites More sharing options...
mrj Posted February 17, 2018 Share Posted February 17, 2018 You can not find php.ini file. Because it's in outside of your document root. You can not get or edit that file. Only admins can edit this file. And all users are set to use the same file. So php settings for all users are same. 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.