[Development] [PHP-API / MYSQL DATABASE] WarZ / Infestation - BACK AGAIN

Status
Not open for further replies.
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

...nice...really nice...

Was really looking forward to the PHP and MySQL Version from the Backend. IIS and MSSQL are a pita right now -.-.
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

Finished working on the CE Release Version and started rewriting the API to an OOP styled Version :)

GigaToni - [Development] [PHP-API / MYSQL DATABASE] WarZ / Infestation - BACK AGAIN - RaGEZONE Forums


(Yep. I actually want to replace the old MySQL functions (mysql_connect, mysql_query etc.) and want to switch to MySQLi :)... But it's not the right time :))
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

Im not really into php and API and what not. Ive read the post. And still trying to figure out...What your doing really...

"cause in my opinion it's way faster AND it's a great way to create PORTABLE warZ servers without the IIS and MSSQL **** stuff."

So, your saying. It will be faster, Less struggle to get a server up? Or is that not the point.
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

With MSSQL 2008 you constantly have a service & server running (MSSQL). So you can't use it "on the fly". You need to download a 384 MB big Server and then install it which takes couple of minutes (~38 Minutes on my last test). After that you need to install an ASP.NET compatible server. For example IIS.
IIS is in my opinion a big pile of **** like MSSQL. It's not secure.
Not easy to setup and a pain in the ass to uninstall.

With MySQL you can have portable MySQL Servers. The only thing you need is one EXE file and 2 config files. And you're good to go.
PHP is in the most cases preinstalled with WAMP / XAMPP or another Apache Server stack. So no hassle to install, easy to configure and the best part:
Secure..

EDIT [
Biggest part:
Oh did I mentioned the potential of Linux servers? Why? Because MySQL and Apache2 with PHP can be installed and run under linux ;)
]

sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client && service apache2 restart
<-- Apache2 server with PHP and MySQL ;) -> DONE

No wine emulation for the API backend (MSSQL can't be run on wine :P.)

Also the response time of the pages:
MSSQL & ASP.NET: 768ms
MySQL & PHP: 268ms

So WAY faster..

Hope you understood this correctly ;)

EDIT:

For the regular things:

&


For MySQL & PHP API:
<-- It's all you need bro :). No install, only extraction and FINISHED :D

btw:
I'm planning on releasing my FULLY MySQL reworked server. So like this:

before:
GameServer -> ASP.NET API Page -> MSSQL -> ASP.NET Output
Client -> ASP.NET API Page -> MSSQL -> ASP.NET Output

PHP API:
GameServer -> PHP API Page -> PHP Output
Client -> PHP API Page -> PHP Output

reworked server:
GameServer -> MySQL
Client -> GameServer -> MySQL

No shitty web-page required.

EDIT # 2:
I've added a little bit of extra security which you can later disable by setting:
$_CONF['extendedSecurity'] = false;

Information about Extra security:

- Auto logout after 24 hours and not on a server
 
Last edited:
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

GigaToni, this is some really nice work you've done!

I cannot wait till full release of this, it's so cool to see that you've picked up this project again <3
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

A complete removal of the ASP API? Wow...

Can't wait to see more progress on that and hopefully I then can run this on my Ubuntu 12.04 LTS Box at some point :)
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

OOP Styled? :D What? U understand what u doing? :D
Also some ur position is WRONG.
Like C->GS->MySQL --- it's **** way. Because u already stop controlling processes.
Also u get to hacker selfaccess to inject ur BD.
 
Re: [PHP-API / MYSQL DATABASE] WarZ / Infestation - Rewritten

OOP Styled? :D What? U understand what u doing? :D
Also some ur position is WRONG.
Like C->GS->MySQL --- it's **** way. Because u already stop controlling processes.
Also u get to hacker selfaccess to inject ur BD.
What you said doesn't make sense whatsoever, you might want to re-phrase that. Also, instead of dissing people's work, why don't you point out the flaws and give them tips?

@GigaToni, you might want to use MySQLi instead of MySQL since MySQL is deprecated in PHP 5.5.x :P
 
Last edited:
So:
<-- This api
<-- An admin tool for PHP & MySQL :) (Secured with mcrypt)
<-- My NOT UP TO DATE source from 2013.

HF :) -> Always remember: Share if you have good stuff :D!

MadScripter
I know :). This code is from the early 2013 when the WarZ code was originally released. It was quick 'n dirty. Thats the reason why I wanted to rewrite my whole code in a more class based code with MySQLi.

EDIT:
Btw:
I'm currently very busy with university and reallife **** (Ye? who knows this game right XD?). But I'm trying to keep working on this & a better version of an up to date WarZ.
 
Last edited:
Status
Not open for further replies.
Back