× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



changed the RequestTimeout setting in fastcgi.conf
RequestTimeout="180"

that worked. The PHP job does not time out.

any way I can apply this timeout change to this specific PHP script?
Changing fastcgi.conf sets the timeout at the server level.





On Fri, Sep 28, 2018 at 3:53 PM, Steve Richter <stephenrichter@xxxxxxxxx>
wrote:

how to set PHP timeout to nomax?

I have a PHP script that is run using HTTPGETCLOB. It runs as part of a
batch job on the IBM i. Getting HTTP response code 408 - request timeout.

Java stored procedure or user-defined function SYSTOOLS.HTTPGETCLOB,
specific name HTTPG00005 aborted with an exception "Server returned
HTTP response code: 408 for URL:
http://172.16.1.254:10080/marketing/dropbox_importProdOnHand.php";.

this error returns in 60 seconds.

In the PHP script I run:
set_time_limit(0);
ini_set('max_execution_time', 300);

in PHP.INI, there is this:
max_execution_time=30

and the apache httpd.conf file has
TimeOut 30000



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.