Home > Backend Development > PHP Tutorial > php实现多线程问题

php实现多线程问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:57:20
Original
1096 people have browsed it

我想用php实现多线程,主要用来清除一些过期的数据。但是php不支持多线程。。该怎么解决啊?我用的apache服务器~~


回复讨论(解决方案)

php 用curl试试 curl可支持多线程

建议你用linux的cron来做,比较简单

php 用curl试试 curl可支持多线程

有没有个例子~~

建议你用linux的cron来做,比较简单

话说我用win7开发的。。

引用 2 楼 sibang 的回复:建议你用linux的cron来做,比较简单话说我用win7开发的。。

用啥??的?所?,你可以在正式运营的时候放到linux服务器就好了.

php目测本身不支持多线程,网上所说的多线程 实际是多 请求 ,被那些菜鸟 误认为是多线程~

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template