Thursday, November 22, 2012

Ajax file management system

AJAXPLORER
Turn your web server into a powerful file management system.install once and access your files from anywhere.Organize, preview and share them, easily and securely.
Its FreeWare and opensource.You can use any where or any programming language.Its also provide help.
Its available for php,dotnet,java,joomla(cms or framework),android,iphone.

Its much easier than other.Its easy to use and customise it.
Download This File manager from Here : Download

Saturday, November 10, 2012

Free Serial key for kaspersky internet security 2012

Now,Free Serial key for kaspersky internet security 2012.Its valid to any computer.This key is use for 3 month or 90 days only.

Serial Key : QCGUH-J8FF6-33WGA-UBY62

Thursday, November 8, 2012

File Download Using Php Script

Todays,
 we learn about how to download any file,image,zip etc using php script.here we can provide the a small file download code.Just you have to provide the file path and download it.


Script for Download :
<?php
//your file name add
$f="test.php";
function force_download($file)
{
//provide your directory path
$dir="";
if ((isset($file))&&(file_exists($dir.$file))) {
header("Content-type: application/force-download");
header('Content-Disposition: inline; filename="' . $dir.$file . '"');
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($dir.$file));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $file . '"');
readfile("$dir$file");
} else {
echo "No file selected";
} //end if

}//end function
echo force_download($f);
?>

Datepicker using Php Script Language

Today we can Learn How to Create Reusable Date picker Using Php Programming Language.Its reusable php function for datepicker.Just Apply the function and get the datepicker.

Just follow this step for creating a Datepicke:

Then we’ll construct the three dropdowns like month ,day,year :
For Month :
$html="<select name=\"".$name."month\">";
 for($i=1;$i<=12;$i++)
 {
    $html.="<option value='$i'>$months[$i]</option>";
 }
$html.="</select> "; 

For Day :
$html.="<select name=\"".$name."day\">";
 for($i=1;$i<=31;$i++)
 {
    $html.="<option value='$i'>$i</option>";
 }
 $html.="</select> ";

For Year :
$startyear = date("Y")-100;
$endyear= date("Y")+50;

 $html.="<select name=\"".$name."year\">";
 for($i=$startyear;$i<=$endyear;$i++)
 {
   $chooser.="<option value='$i'>$i</option>";
 }
 $html.="</select> ";

Final code for datepickr :
function date_picker($name, $startyear=NULL, $endyear=NULL)
{
if($startyear==NULL) $startyear = date("Y")-100;
if($endyear==NULL) $endyear=date("Y")+50;

$months=array('','January','February','March','April','May',
'June','July','August', 'September','October','November','December');

// Month dropdown
$html="<select name=\"".$name."month\">";

for($i=1;$i<=12;$i++)
{
$html.="<option value='$i'>$months[$i]</option>";
}
$html.="</select> ";

// Day dropdown
$html.="<select name=\"".$name."day\">";
for($i=1;$i<=31;$i++)
{
$html.="<option $selected value='$i'>$i</option>";
}
$html.="</select> ";

// Year dropdown
$html.="<select name=\"".$name."year\">";

for($i=$startyear;$i<=$endyear;$i++)
{
$html.="<option value='$i'>$i</option>";
}
$html.="</select> ";

return $html;
}
echo date_picker("registration"); 
use the function as echo date_picker(“registration”) (for example – “registration” is just a name you choose).
The result that will come in $_POST after submitting such form $_POST['registrationmonth'], $_POST['registrationday'] and $_POST['registrationyear'].

Display Preview:

Display Current Time using Javascript

  Today, we learn about how to display current time using JavaScript language.Here we can use javascript
Date object.using this object we can get hours,minute,second by getHours(),getMinutes() and getSeconds().
By using this method we can get the current system or server time.In below Example we provide all script.just run this file.






 Lets see the Below Code for :

<!DOCTYPE html>
<html>
<head>
<script>
function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
t=setTimeout(function(){startTime()},500);
}
function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}
</script>
</head>
<body onload="startTime()">
<div id="txt"></div>
</body>
</html>


Output :
05:30:25