Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 to find the position of the first occurrence of a substring in a string?

0 Answers  


armstrong number by using php while number is given by the keyboard.?

0 Answers  


hi to all i am fresher in php and want to learn php and want a fresher job in php. how to total time i expend to learn php and what is freshers salary.

9 Answers  


Does php support multithreading?

0 Answers  


How many Types of COmments are there in PHP and what are they?

4 Answers  


Write a program to find a string is palindrome or not?

0 Answers  


Can you convert php to html?

0 Answers  


What is the different between cookies and session in php?

13 Answers  


What is difference between single quotes and double quotes in php?

0 Answers  


how to get the value in script values

1 Answers  


What is the use of 'print' in php?

0 Answers  


What is the difference between $message and $$message in php?

0 Answers  


Categories