ajout SAE PHP 19/20 Meilleure note de la promo

This commit is contained in:
EmmanuelTiamzon
2025-12-05 10:30:43 +01:00
parent b05817dbcd
commit 0ae7d097f9
290 changed files with 69511 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
return array(
// Typical Database configuration
'mysql' => array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'mysql'
),
// Database configuration with failover
'mysql_failover' => array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'not_travis',
'password' => 'wrong password',
'database' => 'not_ci_test',
'dbdriver' => 'mysql',
'failover' => array(
array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'mysql',
)
)
)
);

View File

@@ -0,0 +1,34 @@
<?php
return array(
// Typical Database configuration
'mysqli' => array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'mysqli'
),
// Database configuration with failover
'mysqli_failover' => array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'not_travis',
'password' => 'wrong password',
'database' => 'not_ci_test',
'dbdriver' => 'mysqli',
'failover' => array(
array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'mysqli',
)
)
)
);

View File

@@ -0,0 +1,37 @@
<?php
return array(
// Typical Database configuration
'pdo/mysql' => array(
'dsn' => 'mysql:host=127.0.0.1;dbname=ci_test',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'mysql'
),
// Database configuration with failover
'pdo/mysql_failover' => array(
'dsn' => '',
'hostname' => '127.0.0.1',
'username' => 'not_travis',
'password' => 'wrong password',
'database' => 'not_ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'mysql',
'failover' => array(
array(
'dsn' => 'mysql:host=127.0.0.1;dbname=ci_test',
'hostname' => '127.0.0.1',
'username' => 'travis',
'password' => 'travis',
'database' => 'ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'mysql'
)
)
)
);

View File

@@ -0,0 +1,37 @@
<?php
return array(
// Typical Database configuration
'pdo/pgsql' => array(
'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
'hostname' => 'localhost',
'username' => 'postgres',
'password' => 'postgres',
'database' => 'ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'pgsql'
),
// Database configuration with failover
'pdo/pgsql_failover' => array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'not_travis',
'password' => 'wrong password',
'database' => 'not_ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'pgsql',
'failover' => array(
array(
'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
'hostname' => 'localhost',
'username' => 'postgres',
'password' => 'postgres',
'database' => 'ci_test',
'dbdriver' => 'pdo',
'subdriver' => 'pgsql'
)
)
)
);

View File

@@ -0,0 +1,37 @@
<?php
return array(
// Typical Database configuration
'pdo/sqlite' => array(
'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => 'sqlite',
'dbdriver' => 'pdo',
'subdriver' => 'sqlite'
),
// Database configuration with failover
'pdo/sqlite_failover' => array(
'dsn' => 'sqlite:not_exists.sqlite',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => 'sqlite',
'dbdriver' => 'pdo',
'subdriver' => 'sqlite',
'failover' => array(
array(
'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => 'sqlite',
'dbdriver' => 'pdo',
'subdriver' => 'sqlite'
)
)
)
);

View File

@@ -0,0 +1,34 @@
<?php
return array(
// Typical Database configuration
'pgsql' => array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'postgres',
'password' => 'postgres',
'database' => 'ci_test',
'dbdriver' => 'postgre'
),
// Database configuration with failover
'pgsql_failover' => array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'not_travis',
'password' => 'wrong password',
'database' => 'not_ci_test',
'dbdriver' => 'postgre',
'failover' => array(
array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'postgres',
'password' => 'postgres',
'database' => 'ci_test',
'dbdriver' => 'postgre',
)
)
)
);

View File

@@ -0,0 +1,34 @@
<?php
return array(
// Typical Database configuration
'sqlite' => array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_test.sqlite',
'dbdriver' => 'sqlite3'
),
// Database configuration with failover
'sqlite_failover' => array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => '../not_exists.sqlite',
'dbdriver' => 'sqlite3',
'failover' => array(
array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_test.sqlite',
'dbdriver' => 'sqlite3'
)
)
)
);