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

Can we run php in apache tomcat?

0 Answers  


What are classes in php?

0 Answers  


What are the core OOP’s concepts?

2 Answers  


What is the difference between associative array and indexed array?

0 Answers  


hi recently i had faced an interview in that they asked me that php have faced the problem of y2k so which one is that year like 2030,2059 not remember exact year anybody will tell me pls?

1 Answers  






What is use of isset function in php?

0 Answers  


Tell me what are sql injections, how do you prevent them and what are the best practices?

0 Answers  


What is framework? How it works? What is advantage?

0 Answers  


What is a string in r?

0 Answers  


Which function(s) in PHP computes the difference of arrays?

0 Answers  


How many types of functions are there in php?

0 Answers  


What is the difference between get and post in php?

0 Answers  


Categories