RizbIT
Member
Say you have a game or app that uses several different functions in a PHP file, using differen POST requests.
For example to login, update account details on database, to update the highscores database.
Is it better to have different PHP files for each request type?
For example instead of myapp.php have
login.php just for login requests
profiles.php for updating user account
highscores.php for updating or retrieving data from highscore db
If you have 3 or more different php files will this decrease the 'workload' (like I/O, bandwith retrictions) and increase efficiency compared to having 1 PHP file that handles ALL backend stuff?
For example to login, update account details on database, to update the highscores database.
Is it better to have different PHP files for each request type?
For example instead of myapp.php have
login.php just for login requests
profiles.php for updating user account
highscores.php for updating or retrieving data from highscore db
If you have 3 or more different php files will this decrease the 'workload' (like I/O, bandwith retrictions) and increase efficiency compared to having 1 PHP file that handles ALL backend stuff?