PHP7 / MySQLi / PDO support in Coppermine

Various changes to the Windows Operating System, also for the Intranet

Moderator: sjj1805

Post Reply
User avatar
sjj1805
Posts: 1116
Joined: Fri Oct 27, 2006 12:45 am
operating_system: Windows 10 Pro
motherboard: Hewlett Packard 2AF7
system_drive: C
32bit or 64bit: 64 Bit
processor: 2-90 gigahertz Intel Core i5 4460S
ram: 8 GB
video card: NVIDIA GeForce GT 705
sound card: P40D100-4 NVIDIA High Definition Audio
Hard_Drive_Capacity: 8 TB
Location: Birmingham UK
Contact:

PHP7 / MySQLi / PDO support in Coppermine

Post by sjj1805 » Sun Aug 06, 2017 7:24 pm

For the mysql_connect support in PHP7, there is a library on http://sourceforge.net/projects/mysqlwithmysqli
Place the code at C:\inetpub\wwwroot\photo\include
Just need to add an include for this script - add this to include/functions.inc.php:
Immediately after

Code: Select all

/**************************************************************************
   Database functions
 **************************************************************************/

Code: Select all

if (!function_exists('mysql_connect')) {
    require 'mysql_mysqli.inc.php';         //* adjust to correct path based on where you placed the file...
}

Post Reply