我需要在 000webhost.com 的免费托管帐户中增加 php 时间限制


I need to increase php timelimit in free hosting account of 000webhost.com?

我尝试在.htaccess文件中添加以下内容

php_value max_execution_time 0 

任何帮助不胜感激

试试这个

只需在任何输出之前将其放在<?php 下方即可

ini_set('max_execution_time', 9000); //300 seconds = 5 minutes

在你正在执行的 php 文件中

您可以使用

ini_set或set_time_limit()来设置此值:

ini_set('max_execution_time', 600) // set execution time to 600 seconds
set_time_limit(600)

注意:- 如果 PHP 在安全模式下运行,则无法更改此值- 时间将在此设置后开始。意思是设置设置后,时间从 0 开始。