Sparkfire API | Manage users, save data, register system

Hello,

When i transferred the SparkFire API to PHP7 i saw errors coming up. So i rewrote the PHP part.

Official threat: https://forums.unrealengine.com/comm…-php-and-mysql

VaRest plugin: VaRest in Code Plugins - UE Marketplace

Included a README.txt for the guy who want it :slight_smile:

Have fun and please let me know if you have issues.

Download: https://www.dropbox.com/s/ateoh7939r…20API.zip?dl=0


Tested on DigitalOcean
Ref: DigitalOcean – The developer cloud

Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\GamingSocial.bb\api\config.php:8) in D:\OSPanel\domains\GamingSocial.bb\interface\register.php on line 34

I would not recommend this script (maybe only for prototyping, not for production).
There are tons of security issues, there are no prepared statements and there are mixed HTML and php code (spaghetty code).

How to fix this error?
with security I will do later

I didn’t look at the code in detail but this error occurs because there are probably some extra blank spaces (whitespaces) or sending the output before calling the header (probably in config.php).

I just look into code. There are extra blank space in config.php at line 8. Just delete it (delete every empty space till ?> )

How to save a variable in a SQL DB? Or where can I read or see an example?