search
Homephp教程php手册php执行超时设置的方法

php执行超时设置的方法

Jun 06, 2016 pm 07:46 PM
linuxphpimplementmethodCommunityset uptime outEnter

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 1、打开php.ini文件,找到 max_execution_time,将后面的数字改成你想要的时间,单位是秒。 这种方式修改后需要重启服务,一般不建议采用这种方法。 2、使用PHP的ini_set()函数设置,设置方法: ini

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  1、打开php.ini文件,找到 max_execution_time,将后面的数字改成你想要的时间,单位是秒。

  这种方式修改后需要重启服务,一般不建议采用这种方法。

  2、使用PHP的ini_set()函数设置,设置方法:

  ini_set("max_execution_time",1800);

  设置语句必须是php文件的第一行。

  3、使用PHP的set_time_limit()函数设置,设置方法:

  set_time_limit(1800);

  设置语句必须是php文件的第一行。

php执行超时设置的方法

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function