Tuesday, November 30, 2010

Difference between "http" & "https"

FIRST, MANY PEOPLE ARE UNAWARE OF: **The main difference between http:// and https:// is. It's all about keeping you secure**

HTTP stands for HyperText Transport Protocol, which is just a fancy way of saying it's a protocol (a language, in a manner of speaking) for information to be passed back and forth between web servers and clients.

The important thing is the letter S which makes the difference between HTTP and HTTPS.

The S (big surprise) stands for "Secure". If you visit a website or webpage, and look at the address in the web browser, it will likely begin with the following: http://.

This means that the website is talking to your browser using the regular 'unsecure' language.

In other words, it is possible for someone to "eavesdrop" on your computer's conversation with the website.

If you fill out a form on the website, someone might see the information you send to that site.

This is why you never ever enter your credit card number in an http website!

But, if the web address begins with https:// , that basically means your computer is talking to the website in a secure code that no one can eavesdrop on.

You understand why this is so important, right?

If a website ever asks you to enter your credit card information, you should automatically look to see if the web address begins with https:// .

If it doesn't, there's no way you're going to enter sensitive information like a credit card number.

How Parents Can Block Certain Websites from Children at Home

A mother recently wrote saying she is very concerned that her young children are spending too much time on websites like Orkut, MySpace and Facebook.

Her worries are not just about children wasting time on the Internet – it’s more about the activities that children are doing on these sites. She is concerned that children could be interacting with complete strangers (or online predators) and even sharing personal information.

And with some news reports saying that criminal activities could have been planned on Orkut, the mother has finally made up her mind to restrict access to Orkut and some other websites on the home computer.

The only problem is that she has absolutely no clue about how to block websites – parental control software like Net Nanny or Norton Internet Security are pretty good but they cost money.

Now before you take this extreme step of blocking website (that is very likely to be opposed by children), try a few things:
1. Educate your children about the dangers of sharing information online with strangers. Family members should talk in detail about privacy and the web.
2. Place the computer in the living area of your home from where you can easily see the screen so you’ll have some idea about activities that children are doing on the computer including the websites they are visiting frequently.
3. Orkut is an open social network – that means you can easily see who’s in the friends’ list of your children and what kind of text notes (or scraps) are they exchanging with each.

Finally, to block websites on your home computer without investing in expensive software, here’s the trick (for Windows PCs):

Step 1: Click the Start button and select Run. Now type the following text in that Run box:

notepad c:\WINDOWS\system32 \drivers\ etc\hosts

Step 2: You will see a new notepad window on your screen containing some cryptic information. Don’t panic. Just goto the last line of the file, hit the enter key and type the following:

127.0.0.1 orkut.com
127.0.0.1 facebook.com
127.0.0.1 myspace.com

Save the file and exit. That’s it. None of the above sites will now open on your computer.

You can block as many websites as you like with the above technique. If you want to remove the ban later, open the same file as mentioned in Step 1 and delete the above lines.

Pretty simple but remember, our children are also very smart.

Monday, November 29, 2010

Let Learn PHP (Basic) - Lesson 5

Here's the code to Delete Multiple table at once...



<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
$dbname = 'my_db';
$editFormAction = $_SERVER['PHP_SELF'];
if ((isset($_POST["Delete"])) && ($_POST["Delete"] == "Hapus")) {
mysql_select_db($dbname, $conn);
mysql_query("DELETE FROM biodata_ahli WHERE nokp_baru='".$_POST['nokp_baru']."'", $conn)or die(mysql_error());
mysql_query("DELETE FROM pengguna WHERE nokp_baru='".$_POST['nokp_baru']."'", $conn)or die(mysql_error());
}
mysql_select_db($dbname,$conn);
$query_pengguna = "SELECT pengguna.nokp_baru, pengguna.id_pengguna, biodata_ahli.nama FROM pengguna LEFT JOIN biodata_ahli ON biodata_ahli.nokp_baru = pengguna.nokp_baru WHERE pengguna.nokp_baru = '121212121212'";
$pengguna = mysql_query($query_pengguna, $conn) or die(mysql_error());
$row_pengguna = mysql_fetch_assoc($pengguna);
$totalRows_pengguna = mysql_num_rows($pengguna);
?>
<form name="form1" method="post" action="<?php echo $editFormAction; ?>">
<table border="1" bordercolor="#000000" align="center">
<tr><td>
<table width="365" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="131">Nama</td>
<td width="10">:</td>
<td width="224"><?php echo $row_pengguna['nama']; ?></td>
</tr>
<tr>
<td>No. Kad Pengenalan</td>
<td>:</td>
<td><?php echo $row_pengguna['nokp_baru']; ?>
<input name="nokp_baru" type="hidden" value="<?php echo $row_pengguna['nokp_baru']; ?>"></td>
</tr>
<tr>
<td>ID Pengguna</td>
<td>:</td>
<td><?php echo $row_pengguna['id_pengguna']; ?></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Delete" id="Delete" value="Hapus"></td>
</tr>
</table>
</td></tr></table>
</form>





Pretty easy is it?

LinkWithin

Related Posts Plugin for WordPress, Blogger...