hello @KarenOk , please can you add to readme the versions of nginx/apache , php and mysql?
I try to setup with docker compose your project but get some errors.
_Warning: session_start(): Cannot start session when headers already sent in /var/www/html/index.php on line 5
Warning: session_start(): Cannot start session when headers already sent in /var/www/html/helpers/logout.php on line 3
Warning: session_destroy(): Trying to destroy uninitialized session in /var/www/html/helpers/logout.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:1) in /var/www/html/helpers/logout.php on line 12_
I test my environment with simple php info test , and next mysql test code and works without problems:
`<?php
$host = "mysql";
$user = "root";
$pass = "";
$db = "mysql";
try {
$conn = new PDO("mysql:host=$host;dbname=$db", $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";
} catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
?>`
regards.
hello @KarenOk , please can you add to readme the versions of nginx/apache , php and mysql?
I try to setup with docker compose your project but get some errors.
_Warning: session_start(): Cannot start session when headers already sent in /var/www/html/index.php on line 5
Warning: session_start(): Cannot start session when headers already sent in /var/www/html/helpers/logout.php on line 3
Warning: session_destroy(): Trying to destroy uninitialized session in /var/www/html/helpers/logout.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:1) in /var/www/html/helpers/logout.php on line 12_
I test my environment with simple php info test , and next mysql test code and works without problems:
`<?php
$host = "mysql";
$user = "root";
$pass = "";
$db = "mysql";
try {
$conn = new PDO("mysql:host=$host;dbname=$db", $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
?>`
regards.