if i give Limit for mysql query through php command line
script like this for ex.
$limit=500;
$total_items = 1500;
for($start=0;$start<$total_items;){

$command = "/usr/bin/php -q
/home/sitename/public_html/admin/feedmanager/test.php feedid
".$_GET['feedid']." start ".$start." end ".$limit ;



$start = $start+$limit;

$command_result = system($command);
}
so it's execute command for 3 times so it give limit to sql
query but if i have 27000 data so it takes long time? so my
question is that is that any way from php command line
script that i can use for collect all the data at once?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

Explain about the $_GET variable of PHP?

0 Answers  


What is the value for this auto incremented field user_pri_id?

0 Answers  


How can I reset an array in PHP?

4 Answers   Rushmore Consultancy, TCS,


What is the correct syntax of mail() function in php?

0 Answers  


What is mvc php?

0 Answers  






what is the best function that can be used to connect to mysql database and in what cases that we can use below functions ? 1. mysql_connect() 2. mysql_pconnect() please give your answer with all pros and cons

1 Answers  


Why framework is used in php?

0 Answers  


Tell me what is the meaning of a final class and a final method?

0 Answers  


what is the difference between ph4 and php5

2 Answers  


what do you mean by php.ini file ?????????

2 Answers   Samsung,


What is a closure in php?

0 Answers  


What advance thing in php7?

0 Answers  


Categories