[Archive] Application Safe Web Connection
[Archive] Application Safe Web Connection
Quote:
Made this application for people to use as example of how to do safe mysql connection without writting mysql info details into your "featured launcher".
This is simple because the database info is handled in 2 php files on your webserver for example I have:The client application only reads the result returned by index.php where in my example the link contains parameters such as:
- htdocs/appconnect/index.php
- htdocs/appconnect/database.php
"http://scenegaming.com/appconnect/index.php?username=admin&password=admin"
Source here: GitHub - SuperDevRealm/SimplePHPtoCSharpConnection: For trinitycore example
Archived author: Asandru • Posted: 2025-11-04T13:44:56.329706
Original source
Quote:
Made this application for people to use as example of how to do safe mysql connection without writting mysql info details into your "featured launcher".
This is simple because the database info is handled in 2 php files on your webserver for example I have:The client application only reads the result returned by index.php where in my example the link contains parameters such as:
- htdocs/appconnect/index.php
- htdocs/appconnect/database.php
"http://scenegaming.com/appconnect/index.php?username=admin&password=admin"
Source here: GitHub - SuperDevRealm/SimplePHPtoCSharpConnection: For trinitycore example
Quote:SimplePHPtoCSharpConnection/index.php at master . SuperDevRealm/SimplePHPtoCSharpConnection . GitHub - Why no checks for SQLi etc? this is good for an example but bad if people use this code blindly
Archived author: Vengfull • Posted: 2025-11-04T13:44:56.329706
Original source
Quote:SimplePHPtoCSharpConnection/index.php at master . SuperDevRealm/SimplePHPtoCSharpConnection . GitHub - Why no checks for SQLi etc? this is good for an example but bad if people use this code blindly
Quote: Originally Posted by Vengfull
SimplePHPtoCSharpConnection/index.php at master . SuperDevRealm/SimplePHPtoCSharpConnection . GitHub - Why no checks for SQLi etc? this is good for an example but bad if people use this code blindly
Fixed : Prevent SQLI . SuperDevRealm/SimplePHPtoCSharpConnection@3ac7149 . GitHub
Archived author: Asandru • Posted: 2025-11-04T13:44:56.329706
Original source
Quote: Originally Posted by Vengfull
SimplePHPtoCSharpConnection/index.php at master . SuperDevRealm/SimplePHPtoCSharpConnection . GitHub - Why no checks for SQLi etc? this is good for an example but bad if people use this code blindly
Fixed : Prevent SQLI . SuperDevRealm/SimplePHPtoCSharpConnection@3ac7149 . GitHub
Quote: line 12 and 13 htmlspecialchars() - mysqli_real_escape_string
PHP: SQL Injection - Manual
Archived author: Vengfull • Posted: 2025-11-04T13:44:56.329706
Original source
Quote: line 12 and 13 htmlspecialchars() - mysqli_real_escape_string
PHP: SQL Injection - Manual
Quote: Originally Posted by Vengfull
line 12 and 13 htmlspecialchars() - mysqli_real_escape_string
PHP: SQL Injection - Manual
Feel free to push request if you know a safer way, thank you
Archived author: Asandru • Posted: 2025-11-04T13:44:56.329706
Original source
Quote: Originally Posted by Vengfull
line 12 and 13 htmlspecialchars() - mysqli_real_escape_string
PHP: SQL Injection - Manual
Feel free to push request if you know a safer way, thank you