简体   繁体   中英

PHP How to make Curl Request wait for sometime

How can I make curl request that will idle after make request ?

I want to make condition same like user visiting any site then idle for a some time, I want to make that happen in PHP.

Example is, www.siteblalala.com, then I want the php to be idle on that site using curl, how do I make it ?

try sleep function

// sleep for 10 seconds
sleep(10);

Use the sleep function:

sleep(2); //wait for 2 seconds

Description:

Delays the program execution for the given number of seconds.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM