<?php
if($_SERVER['REQUEST_METHOD']=='POST')
{
$cmpname='';
$uplpath=".";
$fname=$_FILES['upload']['name'];
move_uploaded_file($_FILES['upload']['tmp_name'],$uplpath."/".$fname);
$handle=fopen($uplpath."/".$fname,"r");
if($handle)
{
while(!feof($handle))
{
$str=fgets($handle,4096);
$arr=explode(',',$str);
$cnt = count($arr);
$cmp=$cmpname;
if($cnt>1)
{
$nm=$arr[0];
$mail=$arr[1];
echo $q="insert into test(name,email) values('$nm','$mail')";
$r=mysql_query($q) or die(mysql_error());
header("Location:result.php?suc=1");
}
}
}
else
{
$m=1;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
<p>
<input type="file" name="upload" id="fileField" />
</p>
<p>
<input type="submit" name="button" id="button" value="Submit" />
</p>
</form>
</body>
</html>
Monday, 21 November 2011
Wednesday, 2 November 2011
How to hide folder without using any software?
cls
@ECHO OFF
title Folder Lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Lock goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Lock "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==enter your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Lock
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Lock
echo Lock created successfully
goto End
:End
///
and then save it in .bat file and then run.
If you are run this file then if folder not exist there then automatically make .
@ECHO OFF
title Folder Lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Lock goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Lock "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==enter your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Lock
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Lock
echo Lock created successfully
goto End
:End
///
and then save it in .bat file and then run.
If you are run this file then if folder not exist there then automatically make .
Subscribe to:
Comments (Atom)