Bonjour à tous,
je suis entrain de tester PHPExcel sous un WAMP (windows) et je bloque pour ecrire dans un fichier
J'ai erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <?PHP $path = './'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); function __autoload($classe) { $fichier = str_replace('_',DIRECTORY_SEPARATOR, $classe ) . '.php' ; require_once($fichier) ; # Chargement de la classe. } $objet = new PHPExcel_Reader_Excel5(); $excel = $objet->load('../Examples/export-commande.xls'); $writer = new PHPExcel_Writer_Excel5($excel); $writer->save('autreFichier.xls'); $objet = PHPExcel_IOFactory::createReader('Excel5'); $excel = $objet->load('export-commande.xls'); $sheet = $excel->getSheet(0); $sheet->setCellValue('A50', 'MaitrePylos'); $writer = PHPExcel_IOFactory::createWriter($excel); $writer->save('Exemple14.xls'); ?>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 ( ! ) Warning: require_once(PHPExcel\Writer\.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\UwAmp\www\backup\bc\Classes\exemple-export-commande-v2.php on line 7(j'ai la version 1.7.9)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 ( ! ) Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'PHPExcel\Writer\.php' (include_path='.;C:\php\pear;./') in C:\UwAmp\www\backup\bc\Classes\exemple-export-commande-v2.php on line 7
J'ai suivi le tuto présent du devellopez, mais je n'arrive pas a comprendre cette erreur.
Pourriez-vous m'indiquer le probleme
Merci
guigui69
Partager