Write a function that takes "depth" as argument and return
sum of node's data of that depth.
For instance,
(0) depth 0
/ \
(10) (20) depth 1
/ \
(40) (50) depth2
If I pass get_sum_by_depth(2) ,
it would return 90 (i.e. 40 + 50 )
Why does php start with variables?
How can I embed a java program in php file and what changes have to be done in php.ini file?
how to use http headers inside php? Write the statement through which it can be added?
Is runtime polymorphism overriding?
How can cross site request forgery csrf be prevented?
Why is facebook still using php?
what is the difference between php and my sql
Do you know what is the difference between the include() and require() functions?
Which is the dependent variable?
Is it possible to submit a form with a dedicated button?
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?
Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?