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

how can i develop forum code? any one pleale help me on this question

0 Answers  


What is isset function in php?

0 Answers  


What is php constructor?

0 Answers  


Do you know what is the use of rand() in php?

0 Answers  


What are psrs? Choose 1 and briefly describe it?

0 Answers  






Name the Functions in IMAP, POP3 AND LDAP?

2 Answers  


How to use validations in php?(codelgniter)

2 Answers  


why we used type-pool SLIS in ALVs? how many types of windows in scripts?

0 Answers   IBM,


What is the difference between single quoted string and double quoted string?

0 Answers  


What is ci in php?

0 Answers  


What is the advantage of runtime polymorphism?

0 Answers  


Explain some of the php string functions?

0 Answers  


Categories