It will delete all the folders recursively
FOR /R . %f IN (.svn) DO RD /s /q %f
Ref
FOR /R . %f IN (.svn) DO RD /s /q %f
$text = "This is http://www.phpcoaching.in site";
echo $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text);
?>
$username='techoguru';
$format='xml';
$tweet=simplexml_load_file("https://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}");
echo $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $tweet->status[0]->text);
?>
//Set parameter for query string
$username = 'techoguru';
$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 '
### re-direct to www
RewriteCond %{HTTP_HOST} ^phpblog.in
RewriteRule (.*) http://www.phpblog.in/$1 [R=301,L]
select version ();
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
echo str_repeat(" www.phpblog.in ", 3);
?>
$arr = array('php', 'online', 'tutorials');
echo end($arr); // tutorials
?>
define("ABC","Online Training");
echo ABC;//Online Training
?>
define("ABC","Online Training");
echo ABC;//Online Training
............
............
............
define("ABC","Online Training Institute");
echo ABC;//Online Training
?>
session_start();
?>
session_start();
echo session_id();
echo "
";
session_start();
echo session_id();
?>
$todayDate = date("Y-m-d");// current date
echo "Today: ".$todayDate."
";
//Add one day to today
$date = strtotime(date("Y-m-d", strtotime($todayDate)) . " +1 day");
echo "After adding one day: ".date('l dS \o\f F Y', $date)."
";
?>
//This is the most important coding.
header("Content-Type: text/Calendar");
header("Content-Disposition: inline; filename=filename.ics");
echo "BEGIN:VCALENDAR\n";
echo "PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN\n";
echo "VERSION:2.0\n";
echo "METHOD:PUBLISH\n";
echo "X-MS-OLK-FORCEINSPECTOROPEN:TRUE\n";
echo "BEGIN:VEVENT\n";
echo "CLASS:PUBLIC\n";
echo "CREATED:20091109T101015Z\n";
echo "DESCRIPTION:Testing ICS Download\\n\\n\\nEvent Page\\n\\nhttp://www.mysite.com\n";
echo "DTEND:20091208T040000Z\n";
echo "DTSTAMP:20091109T093305Z\n";
echo "DTSTART:20091208T003000Z\n";
echo "LAST-MODIFIED:20091109T101015Z\n";
echo "LOCATION:Anywhere have internet\n";
echo "PRIORITY:5\n";
echo "SEQUENCE:0\n";
echo "SUMMARY;LANGUAGE=en-us:Testing Event\n";
echo "TRANSP:OPAQUE\n";
echo "UID:040000008200E00074C5B7101A82E008000000008062306C6261CA01000000000000000\n";
echo "X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n";
echo "X-MICROSOFT-CDO-IMPORTANCE:1\n";
echo "X-MICROSOFT-DISALLOW-COUNTER:FALSE\n";
echo "X-MS-OLK-ALLOWEXTERNCHECK:TRUE\n";
echo "X-MS-OLK-AUTOFILLLOCATION:FALSE\n";
echo "X-MS-OLK-CONFTYPE:0\n";
//Here is to set the reminder for the event.
echo "BEGIN:VALARM\n";
echo "TRIGGER:-PT1440M\n";
echo "ACTION:DISPLAY\n";
echo "DESCRIPTION:Reminder\n";
echo "END:VALARM\n";
echo "END:VEVENT\n";
echo "END:VCALENDAR\n";
?>
function __autoload($class_name)
{
$file_path = "PATH_TO_CLASS_FILE";
if (file_exists($file_path))
{
require($file_path);
}
}
$obj = new login;
//This is a single line comment
/*
This is
a comment
block
or
Multi line Comment
*/
?>
$var_name = "value";
?>
$my_name = "www.phpblog.in";
echo $my_name;
?>
echo "Hello World.!";
?>
{$obj->calledFunc('string const')|cat:$var}
{ assign var='test1' value="custom.event_activity"}
{ assign var='test2' value=$event.dto->getActivity()}
{ assign var='var' value="." }
{ assign var='test3' value=$test1|cat:$var}
{ assign var='test4' value=$test3|cat:$test2}
{text %.$test4}
/usr/bin/wget "http://IP ADDR/PHP_FILE_PATH/FILE_NAME.php"