tarnus / aatraders

Alien Assault Traders Code Repository
http://www.aatraders.com
5 stars 5 forks source link

PHP 5.6 removes mysql driver - change to mysqli #2

Open SamClayton opened 8 years ago

SamClayton commented 8 years ago

After setting up the game running on a host running PHP 5.6.22, I realized that the mysql_connect() and related functions were deprecated some time ago, and removed during the 5.6 series, and yet the installer restricts the database type to only use this driver. After changing the config's specified db driver to "mysqli", I've found that AdoDbLite and the game works properly.

PHP 5.5 is reaching end of life next month while 5.6 will receive security-related patches through the end of 2018. This simple change would allow it to be run on relatively modern LAMP stacks for several more years.

tarnus commented 8 years ago

This is an excellent idea. I've been very busy with other projects but I will look at this as soon as I can, or do a pull request and I will review and include.

Thanks!

oppiet30 commented 1 week ago

I am going to try and fork it and update this game to php 8.3+. I could probably rip out adodb-lite and put in adodb5. I don't know about the other backends. The aatraders.com website just shows a blank page. So you probably could take it down until it is fixed.

tarnus commented 1 week ago

I'd switch to PDO vs adodb, it would be nice to see it forked. I just don't have the time to work on it.

Didn't know the site was down. I will have to look into that. The game site is still running here:

https://main.aatraders.com/

On Sun, Sep 22, 2024 at 8:15 PM Robert Hinson @.***> wrote:

I am going to try and fork it and update this game to php 8.3+. I could probably rip out adodb-lite and put in adodb5. I don't know about the other backends. The aatraders.com website just shows a blank page. So you probably could take it down until it is fixed.

— Reply to this email directly, view it on GitHub https://github.com/tarnus/aatraders/issues/2#issuecomment-2367083589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAER4ZZCECM2SJBEMBOYIFTZX5TULAVCNFSM6AAAAABOVCCBMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRXGA4DGNJYHE . You are receiving this because you commented.Message ID: @.***>

-- Rick Thomson @.***

Project Disclaimer

Please respond with any required information we may need as soon as possible. This will help keep your project on schedule. Failure to respond quickly will result in project delays and will cause your project to be moved to the back of the project queue.

tarnus commented 1 week ago

Site is back up and running. The SSL Version was pointed to the wrong folder. All is well now.

On Sun, Sep 22, 2024 at 8:15 PM Robert Hinson @.***> wrote:

I am going to try and fork it and update this game to php 8.3+. I could probably rip out adodb-lite and put in adodb5. I don't know about the other backends. The aatraders.com website just shows a blank page. So you probably could take it down until it is fixed.

— Reply to this email directly, view it on GitHub https://github.com/tarnus/aatraders/issues/2#issuecomment-2367083589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAER4ZZCECM2SJBEMBOYIFTZX5TULAVCNFSM6AAAAABOVCCBMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRXGA4DGNJYHE . You are receiving this because you commented.Message ID: @.***>

-- Rick Thomson @.***

Project Disclaimer

Please respond with any required information we may need as soon as possible. This will help keep your project on schedule. Failure to respond quickly will result in project delays and will cause your project to be moved to the back of the project queue.