Jump to content

how to limit the cpu usage for a script


abdul202

Recommended Posts

i have a script that i use to upload files to file sharing website,

recently i got a notice from my hosting provider about the cpu resources the script use about 90% of the cpu

the problem is in the following code which consume alot of cpu

exec ('' . $php_path . ' -c ' . $config_ini . ' mirrors/rapidshare.php ' . $file_uid . ' ' . $status . ' >/dev/null &');

i use the function exec for processing the code

i want to find away to limit the cpu usage for the script

best rgards

Link to comment
https://forums.phpfreaks.com/topic/277008-how-to-limit-the-cpu-usage-for-a-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.