Outils pour utilisateurs

Outils du site


informatique:php:tips

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:php:tips [05/04/2016 13:51] – [Collation caractères unicode] cyrilleinformatique:php:tips [25/02/2021 20:08] (Version actuelle) – [Php side] cyrille
Ligne 29: Ligne 29:
 =====Sécurité===== =====Sécurité=====
  
-[[http://www.zimuel.it/blog/2011/01/strong-cryptography-in-php/|Strong cryptography in PHP]]: Use standard algorithms, Key space, Kerchoof’s principle, Don’t use rand() or mt_rand(), Use a salt value in hash functions,  Size and strength of the passwords, Don’t use plaintext passwords as key for ciphers, Use Base64 to encode encrypted data.+[[http://www.zimuel.it/blog/2011/01/strong-cryptography-in-php/|Strong cryptography in PHP]]: Use standard algorithms, Key space, Kerchoof’s principle, Don’t use rand() or mt_rand(), Use a salt value in hash functions,  Size and strength of the passwords, Don’t use plaintext passwords as key for ciphers.
  
  
Ligne 174: Ligne 174:
       WakeOnLan($ip_addy, $mac_addy,$socket_number)       WakeOnLan($ip_addy, $mac_addy,$socket_number)
  
 +</code>
 +
 +=== Import gros fichier ===
 +
 +Upload large file.
 +
 +== Php side ==
 +
 +  * memory_limit
 +  * upload_max_filesize
 +  * post_max_size
 +
 +To use with Laravel and JS libraries look at [[https://github.com/pionl/laravel-chunk-upload|laravel-chunk-upload]]
 +== Nginx side ==
 +
 +
 +== Client side (chunking) ==
 +
 +  * javascript
 +    * https://www.plupload.com
 +    * https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads
 +
 +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:
 +<code>
 +Access-Control-Allow-Headers Content-Type, Content-Range, Content-Disposition
 </code> </code>
  
informatique/php/tips.1459857070.txt.gz · Dernière modification : 05/04/2016 13:51 de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki