If any of you is interested in using these files in 2018 make sure you use a compatible version of php.
These files were designed for version 5.5 and older, so if you're using any of the recent stuff it will not work ( if you installed wampp or xampp recently it will not work ).
If you're not sure what version of php you are using you can check it here :
http://127.0.0.1/phpmyadmin/ ( or whatever ip your server might use )
http://127.0.0.1/dashboard/phpinfo.php Or simply create a php file with this on it
and then browse it.
Most of the compatibility issues come from the fact that php dropped the MYSQL support after 5.5.
It has now been replaced by MySQLi or PDO.
Example : old code looked like that :
- mysql_connect($dbhost, $dbuser, $dbpasswd) or die('Could not establish database connection.');
When in php 7 it should be like that :
- <?php
- $connection = mysqli_connect('dbhost', 'dbuser','dbpass');
- if (!$connection){
- die("Database Connection Failed" . mysqli_error($connection));
- }
-
Keep in mind that this is not limited to mysql_connect, other function such as select ect...have a new equivalent today.
Making theses files compatible with php 7 shouldn't be too hard. Your work would mostly be traducing the old MySQL function to the new MySQLi one.