how to work with PHPexcel in wamp server?

Topics: User Forum
Sep 30, 2013 at 12:01 PM
Edited Sep 30, 2013 at 12:02 PM
Hi please let me know the procedure for installation of PHP excel on WAMP server.
what i did in my system is
--->I installed wamp sever in D Drive and version of PHP is 5.4.12 which is in D:\wamp\bin\php location.
--->downloaded PHPExcel-1.7.9 and extracted those files into D:\wamp\www\test\Classes
Note: test is a new folder created by myself.
---> i created new file in the test folder with name san2.php
and i wrote the code as
<?php
error_reporting(E_ALL);

require_once 'Classes/PHPExcel/IOFactory.php';

$filename = 'D:\FrameWork.xlsx';
if (!file_exists($filename)) {
die("File $filename does not exist.<br />");
}
$objPHPExcel = PHPExcel_IOFactory::load($filename);
$cellValue = $objPHPExcel->getActiveSheet()->getCell('B14')->getValue();
echo $cellValue
?>

after that i excuted this code in wamp sever as http://localhost/test/san2.php
but it shows error message as "Fatal error: Maximum execution time of 30 seconds exceeded in D:\wamp\www\test\Classes\PHPExcel\Worksheet.php on line 780"

so please let me know how to solve this issue
Oct 2, 2013 at 6:05 AM
Add a call to : set_time_limit(X);
at beginning of your script, where X is an integer giving the permitted maximum execution time in seconds. Try 60, 120,... or 0 (no limit).