It will delete all the folders recursively
FOR /R . %f IN (.svn) DO RD /s /q %f
FOR /R . %f IN (.svn) DO RD /s /q %f
How to delete all .svn folders using Windows Command Prompt?
What is the difference between DDL and DML in MySQL?
select version ();This will display the current MYSQL version used within system
How to Check MySQL Version from Command Prompt
<?php $username='sachin_rt'; $format='xml'; $tweet=simplexml_load_file("https://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}"); echo $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\0\" target=\"_blank\">\0</a>", $tweet->status[0]->text); ?>Source
//Set parameter for query string $username = 'sachin_rt'; $num = '10'; // Get the data from Twitter JSON API $json = wp_remote_get("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=$username&count=$num"); // Decode JSON into array $data = json_decode($json['body'], true); //Create unordered list echo '<ul class="twitter">'; //Loop through all twitter tweets and display the text with the time it was created foreach($data as $tweets) { $text = $tweets['text']; $date = $tweets['created_at']; //Make time human readable ie. 6 hours ago $h_time = sprintf( __('%s ago'), human_time_diff( $time ) ); echo '<li>'.ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\0\" target=\"_blank\">\0</a>", $text) . ' '. $h_time . '</li>'; } //Close list echo '</ul>';
How to fetch Twitter latest updates using PHP?
<?php $arr = array('php', 'online', 'tutorials'); echo end($arr); // tutorials ?>
How to get last element of an array?
<?php echo str_repeat(" www.maxergyinfotech.com ", 30); ?>Explanation
How to repeat a string n times in PHP?
var inputs = document.getElementsByTagName("input"); //or document.forms[0].elements; var cbs = []; //will contain all checkboxes var checked = []; //will contain all checked checkboxes for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox") { cbs.push(inputs[i]); if (inputs[i].checked) { checked.push(inputs[i]); } } } var nbCbs = cbs.length; //number of checkboxes var nbChecked = checked.length; //number of checked checkboxesThe following code gives no of check boxes present and no of checked.
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> function chking() { /* For Running jQuery */ var cbs = $("input:checkbox"); //find all checkboxes var nbCbs = cbs.size(); //the number of checkboxes var checked = $("input[@type=checkbox]:checked"); //find all checked checkboxes + radio buttons var nbChecked = checked.size(); /* For Running jQuery */ /* For Running Javascript */ var inputs = document.getElementsByTagName("input"); //or document.forms[0].elements; var cbs = []; //will contain all checkboxes var checked = []; //will contain all checked checkboxes for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox") { cbs.push(inputs[i]); if (inputs[i].checked) { checked.push(inputs[i]); } } } var nbCbs = cbs.length; //number of checkboxes var nbChecked = checked.length; //number of checked checkboxes alert(nbCbs); alert(nbChecked); /* For Running Javascript */ } </script> </head> <body> <form method="post" action=""> <input type="checkbox" name="cricket" value="cricket" /> cricket<input type="checkbox" name="football" value="football" /> football<input type="checkbox" name="hockey" value="hockey" /> hockey<input type="checkbox" name="chess" value="chess" /> chess<input type="checkbox" name="cards" value="cards" /> cards<input type="button" value="check" onclick="chking();" /> </form> </body> </html>
How to find no of checkboxes using javascript?
### re-direct to www RewriteCond %{HTTP_HOST} ^phpblogworld.blogspot.in RewriteRule (.*) http://phpblogworld.blogspot.in/$1 [R=301,L]
Redirect Naked URL with www using htaccess file