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
What is the difference between exception::getmessage and exception::getline?
How to open a file for writing?
How do you pass a variable by value?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
For printing out strings, there are echo, print and printf. Explain the differences.
What is in php 7?
how can i develop forum code? any one pleale help me on this question
Can php run without server?
How can we submit a form without a submit button?
23 Answers ABC, HCL, Infosys, Kept Bug, Panys, Rushmore Consultancy, Torque Infotech, Wipro, zCon Solutions,
How to get ip address of clients machine?
What is php variable?
How to create a table using php?