Récupérer les infos fichier csv sur drive en php
Bonjour,
J'aimerai récupérer les informations d'un fichier csv sur drive en php. voici le bout de code en question qui ne semble pas marché.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| foreach ($imports->setColumns($imports->getTable() . '.*')->getBy(array('id !=' => ''))->convertRecords() as $imp){
$imp->getById($imp->id);
if ( ! $imp->isEmpty() and ! empty($imp->template)){
$options = array_merge($imp->options, $imp->template);
$this->__ver_4_transition_fix($options);
$imp->set(array(
'options' => $options
))->update();
if ($imp->type == 'file'){
$imp->set(array(
'path' => $uploads['basedir'] . DIRECTORY_SEPARATOR . self::FILES_DIRECTORY . DIRECTORY_SEPARATOR . basename($imp->path)
))->update();
}
} |
Je vous remercie d'avance pour vos réponses