Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: mysql_connect() #480

Open
japetos opened this issue Feb 1, 2016 · 14 comments
Open

Deprecated: mysql_connect() #480

japetos opened this issue Feb 1, 2016 · 14 comments

Comments

@japetos
Copy link

japetos commented Feb 1, 2016

Hello,

by trying to install MySQL tables, following messages appears:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /customers/3/7/6/domain.net/httpd.www/t4/install/include/database.php on line 30 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/7/6/domain.net/httpd.www/t4/install/include/database.php:30) in /customers/3/7/6/domain.net/httpd.www/t4/install/process.php on line 132

Even though I configured MySQLi, it allways tries to connect to DB via mysql_connect()

@oroalej
Copy link

oroalej commented Mar 2, 2016

change that code to

mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB);

and comment out this:

//mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
// mysql_select_db(SQL_DB);

@Shadowss
Copy link
Contributor

Shadowss commented Mar 2, 2016

Why you insist and you don`t use last updated source ?

https://github.com/Shadowss/TravianZ

@japetos
Copy link
Author

japetos commented Mar 9, 2016

as ists the same issue

@Shadowss
Copy link
Contributor

Shadowss commented Mar 9, 2016

USE MYSQL !!!

@japetos
Copy link
Author

japetos commented Mar 10, 2016

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead .......

@oroalej
Copy link

oroalej commented Mar 10, 2016

dude. PHP 5.6+ is not compatible with this game, because the code is outdated. if you want to, you can use lower version of php..

@japetos
Copy link
Author

japetos commented Mar 10, 2016

don't want to ;)

@oroalej
Copy link

oroalej commented Mar 11, 2016

You don't have a choice, it's either use 5.6 lower or update the code :D.

@japetos
Copy link
Author

japetos commented Mar 11, 2016

I have PHP 5.5 and higher and it does not work with these versions.

@oroalej
Copy link

oroalej commented Mar 27, 2016

Use MySQl, Php 5 and lower.

@martinambrus
Copy link

This is a now-outdated original project repo. A more up-to-date repo can be found at https://github.com/yi12345/TravianZ - try that and see if it works for you, if you're still interested. It now works with PHP 7 even.

@japetos
Copy link
Author

japetos commented Nov 1, 2017

sure, thats why mysql_connect() is still implemented in the include files under install folder. IT DOES NOT WORK WITH PHP7!!!

@japetos japetos closed this as completed Nov 1, 2017
@japetos japetos reopened this Nov 1, 2017
@japetos
Copy link
Author

japetos commented Nov 1, 2017

closed by misstake

@martinambrus
Copy link

crap, sorry, that was an asshole mistake :-D but totally incidental... what I meant was this fork: https://github.com/Shadowss/TravianZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants