From 670ce57a125330c0e5431fd4ebd147d1eb984ee4 Mon Sep 17 00:00:00 2001 From: SUPREM Date: Mon, 13 Oct 2025 17:07:03 +0200 Subject: [PATCH] Ajout PDO --- Dockerfile | 9 +++++++++ Index.php | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ PDO.php | 17 ++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 Dockerfile create mode 100644 Index.php create mode 100644 PDO.php diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0f39774 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM php:8.2-apache +LABEL authors="matthieulmr" + +COPY . /var/www/html +WORKDIR /var/www/html + +RUN docker-php-ext-install pdo pdo_mysql + +EXPOSE 80 \ No newline at end of file diff --git a/Index.php b/Index.php new file mode 100644 index 0000000..c26da05 --- /dev/null +++ b/Index.php @@ -0,0 +1,57 @@ + + + + Ma super bibliothèque + + + + + + + + + + + + +
+

Bibliothèque

+ +
+ + +
+ +
+ + + + + + + + \ No newline at end of file diff --git a/PDO.php b/PDO.php new file mode 100644 index 0000000..cbfc925 --- /dev/null +++ b/PDO.php @@ -0,0 +1,17 @@ +console.log('Error PDD : " . $e->getMessage() , "');"; +} +