informatique:php:tips
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:php:tips [25/02/2021 18:29] – [Wake On Lan (WOL)] cyrille | informatique:php:tips [02/10/2025 18:02] (Version actuelle) – [Pointeur de fonction] cyrille | ||
|---|---|---|---|
| Ligne 102: | Ligne 102: | ||
| http:// | http:// | ||
| + | |||
| + | ==== Merge object inheritance property ==== | ||
| + | |||
| + | Chaque classe d'une chaîne d' | ||
| + | Pour fusionner les valeurs de cette propriété : | ||
| + | |||
| + | <code php> | ||
| + | $class = get_called_class(); | ||
| + | while ($class = get_parent_class($class)) { | ||
| + | $data = get_class_vars($class)[' | ||
| + | if( is_array($data)) | ||
| + | // aka " | ||
| + | $this-> | ||
| + | } | ||
| + | </ | ||
| ==== Singleton ==== | ==== Singleton ==== | ||
| Ligne 178: | Ligne 193: | ||
| === Import gros fichier === | === Import gros fichier === | ||
| - | Import | + | Upload |
| + | |||
| + | == Php side == | ||
| - | Php side: | ||
| * memory_limit | * memory_limit | ||
| * upload_max_filesize | * upload_max_filesize | ||
| * post_max_size | * post_max_size | ||
| - | Nginx side: | ||
| - | Client side chunking | + | To use with Laravel and JS libraries look at [[https:// |
| + | == Nginx side == | ||
| + | |||
| + | |||
| + | == Client side (chunking) == | ||
| * javascript | * javascript | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | Cross-site chunked uploads: by default, browsers don't allow all headers used for cross-site file uploads, if they are not explicitly defined as allowed with the following server-side headers: | ||
| + | < | ||
| + | Access-Control-Allow-Headers Content-Type, | ||
| + | </ | ||
informatique/php/tips.1614274150.txt.gz · Dernière modification : de cyrille
