Tutorials
Featuring short lessons and techniques, covering languages viz. PHP, MySQL, CSS, HTML, JavaScript, Java. The latest methods of developing web applications and basic tutorials of Java technology. You'll find free codes available in the post added with some video tutorials wherever applicable. Readmore...
How-To's
There went a rumour about the announcement of the Sony Xperia S and also we have seen some leaked photos of the model many time before. The latest leak photos had Sony Ericsson logo wearing on it but this final product image from CES has a Sony logo on the top Readmore..
Tips and Tricks
Sony announces its very first mobile phone ‘Sony Xperia Ion’ in 10 years after it is being seperated from Ericsson at the CES 2012. Now the new products and devices is back with its brand logo of Sony instead of Sony Ericsson. is the first operator to have a Sony phone in the assortment Readmore...
Hacking Tricks
In the past few months we saw so many ultrabooks budding up in the electronic market. The Apple’s trendy MacBook Air gave the PC makers a cause to be anxious, since it is obvious that these thin-and-light laptops seems to be in a tough competiton with them. In general, Ultrabooks are the small, light, powerful Readmore...
Gadgets
The minute you get your hands on the Droid Xyboard, it is clear that this is a higher-caliber Android tablet while comparing with almost everything else available today. The tablet is sleek, properly balanced and felt comfortable in our hands. A completely new look, significantly enhanced performance and Readmore...
Internet Tweaks
There went a rumour about the announcement of the Sony Xperia S and also we have seen some leaked photos of the model many time before. The latest leak photos had Sony Ericsson logo wearing on it but this final product image from CES has a Sony logo on the top Readmore..
Tech News
There went a rumour about the announcement of the Sony Xperia S and also we have seen some leaked photos of the model many time before. The latest leak photos had Sony Ericsson logo wearing on it but this final product image from CES has a Sony logo on the top Readmore..
Downloads
There went a rumour about the announcement of the Sony Xperia S and also we have seen some leaked photos of the model many time before. The latest leak photos had Sony Ericsson logo wearing on it but this final product image from CES has a Sony logo on the top Readmore..
Google Chrome - Keyboard Shortcuts
How To Use Captcha in HTML Forms
The HTML form above contains the fields for name, email and message. In addition, we have the CAPTCHA image. The <img> tag for the CAPTCHA image points to the script captcha_code_file.php. The PHP script in 'captcha_code_file.php' creates the image for the captcha and saves the code in a session variable named '6_letters_code'.
Validating the CAPTCHA
{
if(empty($_SESSION['6_letters_code'] ) ||
strcasecmp($_SESSION['6_letters_code'], $_POST['6_letters_code']) != 0)
{
//Note: the captcha code is compared case insensitively.
//if you want case sensitive match, update the check above to
// strcmp()
$errors .= "\n The captcha code does not match!";
}
if(empty($errors))
{
//send the email
$to = $your_email;
$subject = "New form submission";
$from = $your_email;
$ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
$body = "A user $name submitted the contact form:\n".
"Name: $name\n".
"Email: $visitor_email \n".
"Message: \n ".
"$user_message\n".
"IP: $ip\n";
$headers = "From: $from \r\n";
$headers .= "Reply-To: $visitor_email \r\n";
mail($to, $subject, $body, $headers);
header('Location: thank-you.html');
}
}
Customizing the CAPTCHA
The CAPTCHA script in the sample code download can be customized. If you open the script, you can see the first few lines of the code as shown below:
$image_height = 40;
$characters_on_image = 6;
$font = './monofont.ttf';
//The characters that can be used in the CAPTCHA code.
//avoid confusing characters (l 1 and i for example)
$possible_letters = '23456789bcdfghjkmnpqrstvwxyz';
$random_dots = 0;
$random_lines = 20;
$captcha_text_color = "0x142864";
$captcha_noise_color = "0x142864";
You can change the size of the CAPTCHA by changing $image_width & $image_height. The number of characters in the CAPTCHA can be changed by updating $characters_on_image. Similarly, the text color of the CAPTCHA can be customized by updating $captcha_text_color. The code adds some 'noise' in the image by adding random lines and dots. you can increase or decrease the noise. Please note that increasing the noise may make it difficult for your genuine visitors to read the code.
How To Play LAN Games Using Hamachi
First download Hamachi from hamachi.en.softonic.com and install it.
How to create new network using Hamachi?
There are three icons that show up along the bottom of the rectangular menu. Clicking on the triangular icon opens up the networking menu, where you can join a network if you have the proper information or set one up.
Click on triangular icon -> create new network
- Turn off or disable your firewall when you play using hamachi. If you are using the Windows firewall, remember to turn it off from the Control Panel.
- Run Hamachi. Click the last button and choose Preferences. Then click Window and check the Show “Advanced…” peer menu item checkbox and click OK.
- You must open ports go to control panel then to windows firewall and exceptions and select hlds then click on add port.
- In name type CS in port number type port 28010, select UDP , click OK
- Run hdls Launcher ( C:\Program Files\Counter-Strike 1.6) , type information as shown below, just use your server name and password, click Start server
- Right click the player’s entry in Hamachi, click Advanced. In the Peer VPN alias box enter the first three parts of your Hamachi IP address (example: 5.109.111) and add the last part of the player’s IP address ( example: .59) so that it makes a new IP address.Click OK and then exit Hamachi. Launch Hamachi again.
- When you finish that call your friend to join your hamachi network and do not give them ip addres of server (192.168.x.x) give them your hamachi ip then when they want to connect to your server in ther CS console( to run console press ~) type connect 5.101.x.x : your port :28010 and hit enter
- Turn off your firewall (or disable it). Remember to turn it back on after you finish playing.Run Counter strike. Press the ~ key on the keyboard. It is to the left of the 1 key on the top row of the keyboard.
















