PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Fatal error: Maximum execution time of 30 seconds exceeded
Fatal error: Maximum execution time of 30 seconds exceeded
Iniciado por Marco Bullo, 16,sep. 2011 16:06 - 1 respuesta
Publicado el 16,septiembre 2011 - 16:06
Hi,
we have develop a php application that use mysql database.
The application has been tested both locally using apache2,of EasyPHP,
as the webserver and in our local Internet domain (hosted on Aruba server http://www.aruba.it)
which uses IIS as webserver.
In these tests the application works without problems.
After the tests we did deploy on the customer server linux, that use apache2 as web server.
Here we get an error in a page:

Fatal error: Maximum execution time of 30 seconds exceeded in
/home/admin/domains/relilax.com/public_html/PLANETBE_WEB/UK/res/WD16.0/WD0a8cce93fd0b9426edcd78b311f3e258.php on line 5

This file is created by webdev and do not know how to solve the problem.

The only difference is that the tests were Windows servers and the customer is linux.

Yours sincerely

Bullo Marco
Publicado el 20,septiembre 2011 - 14:44
I solved the problem myself.
The problem is that in Linux if you want to make a casting from string to an integer, the integer variable must be instantiated at the time of the allocation of the string value.

Example of error:

pippo is int = 0

while ....
s is string = "12"
pippo = s
end

Example solved:

while ....
s is string = "12"
pippo is int = s
end

On windows server there are no hitches