Hey,
I am trying to get a value every x time,
Tthis works I get my value every time for my set time but only after the max execution time is reached.
Example:
[php]ini_set(‘max_execution_time’, 40); //40 sec[/php]
[php]function Loopvalue(){
sleep(10);// Set loop time for getprice_USDT_BTC
getprice_USDT_BTC();
return Loopvalue();
}
Loopvalue();[/php]
What this does, after the 40sec execution time I get a return of 4 prices but when I change the execution time to 0 for no limit the page stays blank.
Thanks for you time!