Author Archive

php function using include

November 16th, 2010

IIC University of Technology Evening Class (B205)
filename: func.php
formfunc.php

formfunc.php

<?php
include("func.php");
if(isset($_GET['btncal'])){
echo "My Add is". add($_GET['txtx'],$_GET['txty']);
echo "<br>";
echo "My Sub is". sub($_GET['txtx'],$_GET['txty']);
}

?>
<!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>
<form method="get">
X:<input  type="text" name="txtx" />
Y:<input  type="text" name="txty" />
<input type="submit" name="btncal" />
</form>
<body>
</body>
</html>

func.php

<?php
function add($x,$y){
$total = $x + $y;
return $total;
}
function sub($x,$y){
$sub = $x - $y;
return $sub;
}
?>

Homework1

November 9th, 2010

IIC University of Technology Evening Class (B205)
filename: homework1.php

<?php
$x = $_GET['txtx'];
$send = $_GET['btnsend'];
if(isset($send)){
if(!$x){
$error_x = "Please input X";
}
else{
switch($x){
case 1:
echo "X is Number 1";
break;
case 2:
echo "X is Number 2";
break;
case 3:
echo "X is Number 3";
break;
case 4:
echo "X is Number 4";
break;
case 5:
echo "X is Number 5";
break;
case 6:
echo "X is Number 6";
break;
case 7:
echo "X is Number 7";
break;
case 8:
echo "X is Number 8";
break;
case 9:
echo "X is Number 9";
break;
case 10:
echo "X is Number 10";
break;
default:
echo "Value is not around 1 to 10";
}
}

}
?>
<!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>Control Statement</title>
</head>
<body>
<form action="#" method="get">
<label for="x">x:</label><input type="text" name="txtx" /><?php echo $error_x; ?><br />
<input type="submit" name="btnsend" /> | <input type="reset" />
</form>
</body>
</html>

Online Virus Scan

October 6th, 2010

To be sure that your execute file which you download from internet is safe(without any infected hided). below are some of the online virus scan which i used to:

1- VirusTotal – Uses several antivirus products to scan files (Antivirus File Scanner)

2- Jotti – Uses several antivirus products to scan files. (Antivirus, Malware File Scanner)

just upload the file and wait a few minutes you will see the result of your execute file.

Cheer!!

Why you can not install Symantec End Point Protection on your Windows 7?

September 2nd, 2010

I would like share my experience with issue.
1. You have to install liveupdate 3.3 –> Start Your Computer
2. Install Symantec End Point Protection 11.x

I hope this trick can help you much.

How to Uninstall Trend Micro Office Scan client from your PC

February 3rd, 2010

1. finding file Ofcscan.ini
2. open Ofcscan.ini finding the word Uninstall_Pwd= and comment the line and you by put # sign infront of the line.
3. create other Uninstall_Pwd= with new line and put number 70 ( Uninstall_Pwd==70).
4. back to password box and type number 1 in password box.

I hope this trick can help you to remove Trend Micro Office Scan Client from your PC.

Cheer!!

WP2Social Auto Publish Powered By : XYZScripts.com