koalas Posted February 10, 2018 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
Krydos Posted February 10, 2018 Posted February 10, 2018 It's probably this: https://stackoverflow.com/a/5701703
mrj Posted February 14, 2018 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.
koalas Posted February 17, 2018 Author Posted February 17, 2018 It's probably this: https://stackoverflow.com/a/5701703anddd.... how could I find php.ini in the file manager?
mrj Posted February 17, 2018 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now