关于php执行时间的限制有关问题的解决

WBOY
Release: 2016-06-13 11:01:07
Original
915 people have browsed it

关于php执行时间的限制问题的解决

?? ?这几天发现了校园网上的一个小漏洞,于是想用php的curl库把我们学校所有人的照片挖下来,于是就写了个脚本。但是执行的时候发现,由于最多只能执行30秒钟,我的程序大概有3000多个循环但是每次执行120 遍左右就停了,上网查了下,大部分的方法是到php.ini里面去修改,但是那样终究感觉不好,于是再google发现,有一个很简单易行的方法,直接在脚本的第一行加上一句set_time_limit(0),一切就解决了~跟大家分享一下~

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!