Bonjour tous le monde , j'essaye de lire un fichier excel àl'aide de PHPExcel,mais j'ai une erreur au niveau de la ligne
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <?php include_once("db_connection.php"); require_once 'IOFactory.php'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="Parc_Transformateur.css" /> </head> <body> <?php include_once("menu_admin.php");?> <div align="center"> <form method="post" enctype="multipart/form-data" action="administrationexcel.php"> <table width="628" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#eeeeee"> <tr> <td width="500"><font size=3><b>Selectionner votre fichier *.csv :</b></font></td> <td width="244" align="center"><input type="file" name="userfile" value="userfile"></td> <td width="137" align="center"> <input type="submit" value="Envoyer" name="envoyer"> </td> </tr> </table> </form> <?php if (isset ($_FILES['userfile']) && $_FILES['userfile']['error']==0) { $objPHPExcel = PHPExcel_IOFactory::load("userfile"); $sheeyt = $objPHPExcel ->getSheet(0); } ?> </body> </html>fatal openning required
Code : Sélectionner tout - Visualiser dans une fenêtre à part require_once 'IOFactory.php';
Partager