Read excel in php [duplicate] - php

This question already has answers here:
Fatal error: Maximum execution time of 300 seconds exceeded
(22 answers)
Closed 8 years ago.
I have PHP 5.3.29 installed and trying to read an excel file with php-excel-reader-2.21, but it gives error as below
Fatal error: Maximum execution time of 300 seconds exceeded in php-excel-reader-2.21\excel_reader2.php on line 143
Also tried to use phpExcelReader, it gives error as below.
Fatal error: Maximum execution time of 300 seconds exceeded in C:\Apache2.2\htdocs\phpExcelReader\Spreadsheet\Excel\Reader\oleread.php on line 96
Working on maximum time limit may not be helpful here as I have only 2 rows to read in excel file and for that the value "300" I have set is already high. anyone has idea on why the libraries failing to read excel? or any alternative suggestions?

In your php.ini file there is a directive max_execution_time, change it to what you want.
OR
in your PHP script, write following line:
ini_set('MAX_EXECUTION_TIME', -1);

Related

Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 152

I've a codeigniter/php application running in WAMP and connected to sql server database using. When i tried to retrieve a long report from the system i'm getting the following error:
Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 152
I've already increased max_execution_time = 99999 in php.ini and also changet the value in C:\wamp\apps\phpmyadmin4.0.4\libraries\config.default.php the $cfg['ExecTimeLimit'] = 0; but still not working. What could be the reason, is there any thing I should change in sqlsrv_driver.php may be?
Increase the timeout, preferably for that query only.

Fatal error: execution time of 30 seconds exceeded in phpmyadmin

Today I tried to access phpMyAdmin but I couldn't because of the this error message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\phpMyAdmin\vendor\samyoul\u2f-php-server\src\U2FServer.php on line 10
So...I tried to modify max_execution_time in php.ini file but it didn't work
Also, in line 10 from U2FServer.php file is the class name:
Why is this happening? Can you help me, please?
Thank you

what does this mean "Maximum execution time of 30 seconds exceeded" In php [duplicate]

This question already has answers here:
Fatal error: Maximum execution time of 30 seconds exceeded
(17 answers)
Closed 5 years ago.
Why this message appears frequently ? Does it occurs when code is error or server is overloaded ? How can we decrease load in PHP server? How to solve this problem? please help me.
See PHP's set_time_limit(100); method:
Set the number of seconds a script is allowed to run. If this is
reached, the script returns a fatal error. The default limit is 30
seconds or, if it exists, the max_execution_time value defined in the
php.ini.

How to solve fatal error in phpmyadmin? [duplicate]

This question already has answers here:
Maximum execution time in phpMyadmin
(12 answers)
Closed 7 years ago.
when i open phpmyadmid that time this error occuers...
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\phpMyAdmin\libraries\PMA.php on line 10
how to solve it???
please go to
xampp\phpMyAdmin\libraries\config.default.php
$cfg['ExecTimeLimit'] = 6000;
And Change php.ini
max_execution_time = 5000

Fatal error: Maximum execution time of 30 seconds exceeded [duplicate]

This question already has answers here:
Fatal error: Maximum execution time of 30 seconds exceeded
(17 answers)
Closed 8 years ago.
I'm new to the php.
When I'm trying to connect to crea(Canada realestate) database I encountered a error
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1465
again I executed the code then it is showing
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1408
Then I changed the following line in php.ini and restarted my server
max_execution_time=300
This time it again sown different line number
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1489
How to overcome this problem?
Here the complete code is http://crea.ca/data-distribution-facility-documentation
It seems your script is taking too much time to execute and it is being timedout.
Edit your php.ini and change the value of max_execution_time to 1000 and restart your web server.
You can also try to increase your memory_limit.

Categories