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: 1113
Joined: Fri Oct 27, 2006 12:45 am
operating_system: Windows 8 Pro
motherboard: Equium P200-178
system_drive: C
32bit or 64bit: 32 Bit
processor: Intel Pentium Dual-Core Processor T2080
ram: 2 GB
video card: Intel 945 Express
sound card: Intel GMA 950
Hard_Drive_Capacity: 1160 GB
Location: Birmingham UK

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