Log message #3942223

# At Username Text
# Oct 4th 2016, 09:55 Speud1 j'injecte +/-3000 requests en moins de 10s, c'est correct d'après vous ?
# Oct 4th 2016, 09:54 Speud1 yes c'est un peu ce que j'ai écrit, en tout cas merci pour les liens ;)
# Oct 4th 2016, 09:50 s13 https://gist.github.com/orgasmicnightmare/9f4a2fd423dfd2b32275b77fa3c4ba84
# Oct 4th 2016, 09:49 s13 ouias tu peux tres bien importer un fichier sql via le shell
# Oct 4th 2016, 09:49 Skeletyon Il n'a pas supporte son lien
# Oct 4th 2016, 09:47 GuillaumeP http://php.net/manual/fr/function.exec.php
# Oct 4th 2016, 09:46 GuillaumeP tu peux -- je crois -- executer des commandes via le shell
# Oct 4th 2016, 09:45 Speud1 oui aussi mais là c'est par shell, y'a tout un process en amont que je dois respecter
# Oct 4th 2016, 09:45 GuillaumeP une autre technique consisterait à utiliser la ligne de commande (Linux/osx) pour importer dans mysql
# Oct 4th 2016, 09:45 Speud1 oki je pense mon script était bon alors, c'était juste pour info (suite à la remarque d'un collègue....)
# Oct 4th 2016, 09:44 GuillaumeP Speud1: essaie ca : https://github.com/box/spout
# Oct 4th 2016, 09:44 Speud1 $line = fgets($f);
# Oct 4th 2016, 09:44 Speud1 ben moi aussi... while(!feof($f)){
# Oct 4th 2016, 09:42 Skeletyon Nou son fait du fget hha
# Oct 4th 2016, 09:37 Speud1 vaut mieux parser ligne par ligne ou par bloc ?
# Oct 4th 2016, 09:37 Speud1 ah ouais ?
# Oct 4th 2016, 09:35 kitcat71_ ACTION utilises pas ca
# Oct 4th 2016, 09:30 Speud1 quelqu'un utilise ça LOAD DATA INFILE avec cake ?
# Oct 4th 2016, 09:29 Speud1 hello @kitcat71_
# Oct 4th 2016, 09:28 Speud1 et petites question, quelle est votre technique pour importer un fichier de 200 000 lignes (csv) en db ?
# Oct 4th 2016, 09:28 kitcat71_ Bonjour
# Oct 4th 2016, 09:28 Speud1 ouais je me suis pas pris la tete j'ai mis un champs slug (comme ca pas de soucis ;)
# Oct 4th 2016, 09:09 s13 ben tu mets à "true" et tu testes
# Oct 4th 2016, 09:09 s13 Dans 'DataSources']['Default'] : quoteIdentifiers' => false,
# Oct 4th 2016, 09:09 s13 de base dans app.php
# Oct 4th 2016, 09:08 s13 l'echappement des caractéres
# Oct 4th 2016, 09:08 s13 sinon essaie de mettre dans ton fichier de config
# Oct 4th 2016, 09:08 s13 oui c'est ce à quoi je pensais
# Oct 4th 2016, 09:01 Speud1 https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
# Oct 4th 2016, 09:01 Speud1 par contre sur le channel cake on me dit qu'on ne peut pas utiliser de % ou / dans un nom de field
# Oct 4th 2016, 09:00 Speud1 yes l'entité semble correct
# Oct 4th 2016, 09:00 GuillaumeP tu as bien patché ton entity avec les données à sauver
# Oct 4th 2016, 08:58 Speud1 mais je vois rien d'autres....on dirait que ca vient des champs ?
# Oct 4th 2016, 08:58 Speud1 Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 Erreur de syntaxe prâ??¿s de 'Calls, Avg Talking Duration, Phone Tickets Created, % Phone Tickets/Inbound Call' â??á la ligne 1 in [D:\Wamp\www\qcheck\vendor\cakephp\cakephp\src\Database\Statement\MysqlStatement.php, line 36]
# Oct 4th 2016, 08:57 Speud1 ou peut-être y'a un moyen de voir la requête en shell ?
# Oct 4th 2016, 08:56 Speud1 $res = $this->Kpis->save($res,);
# Oct 4th 2016, 08:56 Speud1 ben c'est en shell, donc je la vois pas, j'utilise juste le save
# Oct 4th 2016, 08:55 GuillaumeP hello Speud1 c'est quoi ta query ?
# Oct 4th 2016, 08:43 Speud1 Fatal error: Unsupported operand types in D:\Wamp\www\qcheck\vendor\cakephp\cakephp\src\ORM\Table.php on line 1479
# Oct 4th 2016, 08:43 Speud1 es ce que quelqu'un a déjà eu cette erreur avec cake ? => http://pastebin.com/Xh50rTRc
# Oct 4th 2016, 08:43 Speud1 salut tout le monde