I am trying to make a PHP file to run online (e.g. http://www.writephponline.com/ and alternatively I can use PUTTY). This script will get an excel file from a link. Then it will save it to a folder (given link). It seems that there is an error.
include 'my_link/Classes/PHPExcel.php'; $inputFileName = 'FILE_NAME'; $reader = new PHPExcel_Reader_Excel2007; $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $reader = PHPExcel_IOFactory::createReader($inputFileType); $workbook = $reader->load($file); $objWriter = PHPExcel_IOFactory::createWriter($workbook, 'Excel2007'); $objWriter->save('FOLDER_NAME'); exit(); The error is :
01) Class 'PHPExcel_Reader_Excel2007' not found
UPD:
I even tried that :
require_once('apolosiskos.co.uk/Classes/PHPExcel.php'); require_once('apolosiskos.co.uk/Classes/IOFactory.php'); require_once('apolosiskos.co.uk/Classes/Excel2007.php'); $fileType=PHPExcel_IOFactory::identify("FILE.xlsx"); $objReader = PHPExcel_IOFactory::createReader("Excel2007"); $objReader->setReadDataOnly(true); $objPHPExcel = $objReader->load("FILE.xlsx"); $objWriter->save("http://apolosiskos.co.uk/output.xlsx"); and I got :
02) PHPExcel_IOFactory
I have included the source though and I don't know why it is not working. Is there a public link for PHPExcel.php so I can test?