diff options
| author | polo <ordipolo@gmx.fr> | 2022-12-14 12:52:11 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2022-12-14 12:52:11 +0100 |
| commit | a45a3e0345890b9df3c5fa7c82966a64491eca02 (patch) | |
| tree | e56b328a497cc315095dbf7f513f2ceb76d4351b /php/functions.php | |
| parent | eda2e96c17d8d22cfc2615698efa5c757dbfb0a5 (diff) | |
| download | AppliGestionPHP-a45a3e0345890b9df3c5fa7c82966a64491eca02.tar.gz AppliGestionPHP-a45a3e0345890b9df3c5fa7c82966a64491eca02.tar.bz2 AppliGestionPHP-a45a3e0345890b9df3c5fa7c82966a64491eca02.zip | |
MODEL + reorganisation
Diffstat (limited to 'php/functions.php')
| -rw-r--r-- | php/functions.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/php/functions.php b/php/functions.php deleted file mode 100644 index 83ebead..0000000 --- a/php/functions.php +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | // php/functions.php | ||
| 3 | |||
| 4 | // commande pour lancer une application graphique en ouvrant un fichier | ||
| 5 | function window_app_command(string $app, string $path = ''): string | ||
| 6 | { | ||
| 7 | $command = 'nohup ' . $app; // détache l'appli du script PHP | ||
| 8 | if($path !== '') | ||
| 9 | { | ||
| 10 | $command .= ' ' . $path; | ||
| 11 | } | ||
| 12 | $command .= ' > /dev/null 2>&1 &'; | ||
| 13 | // stdout > /dev/null et & permettent de rendre la main à PHP | ||
| 14 | // stderr > stdout pour cacher un message inutile | ||
| 15 | return $command; | ||
| 16 | } | ||
| 17 | |||
| 18 | function recherche_client(string $saisie): array | ||
| 19 | { | ||
| 20 | $resultats = []; | ||
| 21 | |||
| 22 | // recherche dans la BDD | ||
| 23 | |||
| 24 | |||
| 25 | return($resultats); | ||
| 26 | } | ||
