Sparkfire API | Manage users, save data, register system


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

Official threat:…-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.


Tested on DigitalOcean
Ref: DigitalOcean – The developer cloud

Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\\api\config.php:8) in D:\OSPanel\domains\\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?