Jump to content

Recommended Posts

Posted

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.php

register.php

Posted

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.
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...