html5andphp: July 2013

Sunday, 28 July 2013

html5 voice seach

Making voice search using html5 




<!DOCTYPE html>
<html>
  <style type="text/css">
  #uk
  {
  border-radius:35px;
  -wekit-border-radius:35px;

  }

 </style>

 <body></br>
 </br></br>
 </br></br>
 </br></br>
 </br></br>
 </br>
 <center>
<table id="uk" width="200"  cellspacing="2" cellpadding="2" height="100"  bgcolor="#0000FF">
  <tr>
    <td><center>uk</center>
  <form action="http://www.google.com/search" method="get"  >
   <input type="text" id="uk" name="q" size="25″ maxlength="255″ value=""  x-webkit-speech/>
 <center>  <input type="submit" value="SearchinG"/></center>
  </form>
</td>
  </tr>
</table>
</center>
 </body>
 </html>

Output



search bar



Saturday, 27 July 2013

Making Counter Using Php

Making Counter using php and html with the help of file handling.

Cont your real visiter using this very simple counter.

<?php
error_reporting(0);
$file = file_get_contents("counter.txt");
$data=$file;
$newdata=$data+1;
$newfile=fopen("counter.txt","w");
fwrite($newfile,$newdata);
?>
<html>
<table width="auto" border="2" cellspacing="2" cellpadding="2" bgcolor="#00FFFF" bordercolor="#0000FF" >
  <tr>
    <td><?php echo $newdata;  ?></td>
  </tr>
</table>
</html>

Output



For more on php visit php-tutorial


Download PHP PDF php basic tutorial pdf


counter

Friday, 26 July 2013

Making Image Site


Image site using html and css


<!DOCTYPE html>
<head>
<style type="text/css">
.bor
{
text-align:center;
height:230px;
width:150px;
border:#000000 solid 2px;
padding:1px;
float:left;
margin:2px;
}
.bor img
{
height:200px;
width:140px;
margin:1px;
border:#000000 2px solid;
}
.bor img a:hover img
{
border:#00CC66 solid 2px;
}

.img uk
{
 text-align:center;
  font-weight:normal;
  width:120px;
  margin:0px;

}
#container
{
width:900px;
text-align:center;

}
</style>
</head>
<body>
<div id="container">
<div class="bor" ><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>


<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
<div class="bor"><img src="1.jpg">
<div class="uk">umar</div>
</div>
</div>
</body>
</body>
</html>

Download PHP PDF php basic tutorial pdf


Output


image_site
image site

Thursday, 25 July 2013

css3

Basic of css 3

Cascading Style Sheets (CSS) is a style sheet format, endorsed by the World Wide Web Consortium (W3C) that works with HTML documents using simple syntax and various style properties denoted by English language keywords.
CSS1 (Version 1.0) incorporated innumerable layout settings suitable for downloadable HTML pages. CSS2 (Version 2.0) provides additional XML support, downloadable fonts and audio presentations for visually impaired users. CSS3 (Version 3.0) continues in development and its improved highlights include: vertical text, extensive backgrounds and borders, speech recognition and user interaction.
Most web browsers support CSS3 as it becomes more popular and more web designers implement the use of CSS3 in their layout design. Web designers and web developers CSS3 can find valuable employment all over the world.
Informative online training articles based on CSS3 including tutorials on Selectors, multi column features, advantages, opacity, wrapping and link usage and creation are covered in this section. CSS3 is modularized, providing greater flexibility and capability for the developer or programmer. Maintenance of the system is improved from earlier versions and allows for individual modules to be tested and integrated with ease. CSS3 has become popular with developers due to faster completion time, more flexibility and easier maintenance of web pages.


Css 3 is the latest version of css .Css3 provide new feature areb given below.

Some of the most important CSS3  properties are:
  • Selectors
  • Animations
  • Box Model
  • Backgrounds and Borders
  • Text Effects
  • 2d Transformations
  • 2d Transformations
  • Animations
  • Multiple Column Layout
  • User Interface
  • Transitions Effects
  • Border Radius
  • Vertical Column
  • shapes
  • boxes

All the propeties explain in next posts 


  1. CSS3 Advantages

    CSS3  Advantages Having got a detailed idea of CSS3 and its features with some of the vital attributes of CSS3 let us see the advantages or uses of CSS3 in brief in this section. There are numerous and variety of areas in which CSS3 makes it mark and thus users finds it one of the comfortable and powerful tools for usage thus making it a reason

Drop Down Menu using Css


Making of Drop down menu using html and php


The file of html save in any name but css file save in menu.css and link in the html file.
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="menu.css">
</head>
<body>
<big>uk<big>
<div  class="menu">
<ul>
<li><a href="#">Web Devolopment</a>
<ul>
<li><a href="#">java Script</a></li>
<li><a href="#">j Query</a></li>
<li><a href="#">Html</a></li>
<li><a href="#">css</a></li>
</ul>
</li>
</ul>
</div>
<div  class="menu">
<ul>
<li><a href="#">Web Devolopment</a>
<ul>
<li><a href="#">java Script</a></li>
<li><a href="#">j Query</a></li>
<li><a href="#">Html</a></li>
<li><a href="#">css</a></li>
</ul>
</li>
</ul>
</div>
<div  class="menu">
<ul>
<li><a href="#">Web Devolopment</a>
<ul>
<li><a href="#">java Script</a></li>
<li><a href="#">j Query</a></li>
<li><a href="#">Html</a></li>
<li><a href="#">css</a></li>
</ul>
</li>
</ul>
</div>
<div  class="menu">
<ul>
<li><a href="#">Web Devolopment</a>
<ul>
<li><a href="#">java Script</a></li>
<li><a href="#">j Query</a></li>
<li><a href="#">Html</a></li>
<li><a href="#">css</a></li>
</ul>
</li>
</ul>
</div>

</body>
</html>


css code

/* CSS Document */
.menu
{padding-left:45px;
margin:0px;
}

.menu ul

{
padding:0px;
margin:0px;
line-height:30px;
}


.menu li
{
padding:0px;
margin:0px;
list-style:none;
float:left;
position:relative;
background-color:#660000;
}
.menu a
{
width:130px;
 height:30px;
 display:block;
 text-decoration:none;
 color:#FF0000;
 border:2px solid #333399;
 text-align:center;
 }

.menu ul ul
{
position:absolute;
visibility:hidden;
top:30px;
}

.menu ul li:hover  ul
{
visibility:visible;
}

.menu a:hover
{
background:#000099;
color:pink;
}


Output

drop down menu
drop down menu

claim

QWZFHK7T7QU7

calculator

Making calculator using php

Html , php and java script codecode


<!DOCTYPE html>
<head>
</head>
 <br> <br> <br>
<center>
<table width="200"  border = "2"  bordercolor = "#000033"  bordercolor = "#FF00FF" >
  <tr>
    <td>
<table  border = "1"  bgcolor = "#FFFFFF"  width = "210" height = "30" >
  <tr>
    <td>
<?php
error_reporting(0);
if( isset ($_POST ['sub'] ) )
                {
     $value1 = $_POST ['val1'] ;
                 $value2 = $_POST ['val2'] ;
     $cal = $_POST ['cal'] ;
                                 If ( $value1 == '' )
                                 {
                                 echo " < script >  alert ( ' please enter value ' ) < / script > " ;
                                 exit() ;
                                 }
                                 If ( $value2 == '' )
                                 {
                                     echo " < script >  alert ( ' please enter value ' ) < / script > " ;
                                                  exit() ;
                                     }
               
              If ( $cal == '' )
                                 {
                                     echo " < script >  alert ( ' please enter value ' ) < / script > " ;
                                                  exit() ;
                                     }
                                                switch ( $cal )
                                                {
                                                 case  "+"  :
                                                 echo $value1 + $value2 ;
                                                break ;
                                               
                                                case  "-"  :
                                                 echo  $value1 - $value2 ;
                                                break ;
                                               
                                                case  "*"  :
                                                 echo  $value1 * $value2 ;
                                                break ;
                                               
            case  "/"  :
                                                 echo $value1 / $value2 ;
                                                break ;
                                                }
                }
?>
               
</td>
  </tr>
</table>
< center >< br >< br >< br >< strong >< font color="#0066FF" >Simple Umar Calculator< /font >< strong>
< body bgcolor = "#00FFFF" >
< form action = "cal.php"  method = "post" >
< table >
  <tr>
    <td> Value1: </td>
    <td> <input name = "val1"  type = "text" ></td>
  </tr>
    <td> Sign: </td>
    <td> <input name = "cal" type = "text"> </td>
  </tr>
  <tr>
    <td> Value2: </td>
    <td> <input name = "val2" type = "text" > </td>
  </tr>
  <tr>
  <tr>
    <td colspan = "2"> < center >< input name = "sub"  type = "submit" value =  "CaLcUlAtE" > </center> </td>
    </tr>
</table>
</form>
</center>

</td>
  </tr>
</table>
</center>



</body>
</html>



For more on php visit php-tutorial

Download PHP PDF php basic tutorial pdf

calculator
umar farooque khan

Sunday, 21 July 2013

Maintain a Virus

Tips to Maintain a Virus Free Computer

Is your computer infected with virus? Do you often get mysterious error messages? Well, this is a common problem faced by almost all the computer users across the globe.


Even though some of them are harmless, they do have the ability to do a number of nasty things up to and including damaging or erasing sensitive data from your computer. However, there are ways to keep viruses and other malware away from your computer. Here are the 12 tips to maintain a virus free computer:
  1. Email is one of the common ways by which your computer can catch a virus. So, it is always recommended to stay away from SPAM. Open only those emails that has it’s origin from a trusted source such as those which comes from your contact list.

    If you are using your own private email host (other than Gmail, Yahoo, Hotmail etc.) then it is highly recommended that you use a good spam filter. And finally NEVER click on any links in the emails that comes from untrusted sources.

  2. USB thumb/pen drives is another common way by which viruses spread rapidly. So, it is always a good habit to perform a virus scan before copying any data onto your computer. NEVER double-click the pen drive to open it. Instead right-click on it and select the option “open”. This is the safe way to open a pen drive.

  3. Be careful about using MS Outlook. Outlook is more susceptible to worms than other e-mail programs, unless you have an efficient antivirus programs running. Use Pegasus or Thunderbird (by Mozilla), or a web-based program such as Hotmail or Yahoo (In Firefox).

  4. As we all know, Internet is the main source of all malicious programs including viruses, worms, trojans etc. In fact, Internet contributes to virus infection by up to 80 percent. So, here are the tips for safe surfing habits so that you can ward off virus infection up to the maximum possible extent.

    • Do not click on pop-up windows that announce a sudden disaster in your city or announce that you’ve won an hourly prize. They are the ways to mislead Internet users and you should never trust them.

    • You can also use a pop-up blocker to automatically block those pop-ups.

  5. Most of us use search engines like Google to find what we are looking for. It is quite obvious for a malicious website to get listed in the search results. So, in order to avoid visiting those untrusted malicious websites, you can download and install the AVG LinkScanner which is a freeware. This tool can become very handy and will help you to stay away from those malicious websites.

  6. Install a good antivirus software and keep it updated. Also perform full system scan periodically. It is highly recommended that you turn on the automatic update feature. This is the most essential task to protect your PC from viruses. If PC security is your first option then it is recommended that you go for a shareware antivirus software rather than using the freeware stuffs.

  7. Most of the antivirus programs offer the auto-protect feature that provides real-time security for your PC. Make sure that this feature is turned on.

  8. In addition to an antivirus, it is worthwhile to spend a few bucks on a good anti-spyware program. This can provide extra security for your computer. 
  9. Never open any email attachments that come from untrusted sources. If it is a picture, text or sound file (these attachments end in the extensions .txt, .jpeg, .gif, .bmp, .tif, .mp3, .htm, .html, and .avi), you are probably safe, but still perform a virus scan before opening them.

  10. Do not use disks that other people gave you, even from work. The disk could be infected with a virus. Of course, you can run a virus scan on it first to check it out.

  11. Set up your Windows update to automatically download patches and upgrades. This will allow your computer to automatically download any updates to both the operating system and Internet Explorer. These updates fix security holes in both pieces of software.

  12. While you download files from untrusted websites/sources such as torrents, warez etc. make sure that you run a virus scan before executing them.

  13. And finally it is recommended not to visit those websites that feature illegal/unwanted stuffs such as cracks, serials, warez etc. as they contribute much in spreading of virus and other malicious programs.

Update: If you want to hack facebook and other email account passwords, please use the best Hacking Software- Winspy Keylogger which is FUD (Fully UnDetectable). This is personally recommeded keylogger from wildhacker.

Saturday, 20 July 2013

Tricks and tips

1. Disable USB Devices:

Disabling USB ports can be a smart idea to add security to the computer. This can be really handy if the computer is on a public place where the chances of virus and other malware infection is really high. You can easily disable access to USB ports with the following registry hack:
1.    Open the Registry Editor (Start -> Run -> Type regedit and hit Enter)
2.    In the registry, navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
3.    In the right-side pane, double-click on “Start”.
4.    In the “Value data” field enter 4 and click on “OK”.
5.    Close the Registry Editor and reboot.
To enable USB devices, follow the same procedure as above except in the step-4 enter 3 in the “Value data” field.

Works on Windows XP, Vista and 7.


2. Disable the Windows Task Manager:

Need to limit access to your computer by disabling the Task Manager? Here is a simple registry hack to do this:
1.    Open the Registry Editor and navigate to the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
2.    Right-click on “Policies”, select New -> Key and name the key as System.
If you are on Windows XP, you need not create the new key “System” as it is already present in it. So, you can directly navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System in the Step-1 itself.
3.    Right-click on “System”, create a new “DWORD” and name it to DisableTaskMgr.
4.    Double-click on the DWORD “DisableTaskMgr” and set the “Value data” to 1 (0=Enable, 1=Disable).
5.    To enable the Task Manager, Set the “Value data” back to 0.
Works on Windows XP, Vista and 7.

3. Add Programs to Windows Startup:
You can now add your favorite programs to Windows Startup without the need for using the start-up folder. Here is a way to do this:
1.    Open the Registry Editor and navigate to the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
2.    On the right-side pane, create a new “String Value” and rename it to the name of the program that you want to add (you can give any name, it doesn’t matter).
3.    Double-click on the “String Value”, in the “Value data” field add the path of the executable program that has to execute at startup.
4.    Reboot the computer to see the changes in effect.
Works on Windows XP, Vista and 7.

binary operator overloading

Write a program to show the binary operator overloading.

code

#include<iostream.h>
#include<conio.h>
class  fun
{
inta,b;
public:
void get()
{
cout<<"Enter any two no.'s";
cin>>a>>b;
}

fun operator+(fun d)
{
fun f;
f.a=a+d.a;
f.b=b+d.b;
return f;
}
void show()
{
cout<<a<<endl<<b<<endl;
 }
};

void main()
{
fun a1,a2,a3;
a1.get();
a2.get();
a3=a1+a2;
a3.show();
getch();
}












OUTPUT:

Enter any two no.'s 5 7
Enter any two no.'s 8 7
13
14

Friday, 19 July 2013

Basic of css

Whate is css?


Css stand for “Cascading style sheet”.It is used to formatthe layout of web pages.They can be used to define text style such as text decoration,text font ,text color and table size ,define link’s color. Mainly css depend upon colors.

Css define how html tag work.We define how a particular tag work and also define properties of tag.It is used to create uniform look hole of web site.These style sheets can then be applied to any Web page.


What can I do with CSS?

CSS is a style language that defines layout of HTML documents. For example, CSS covers fonts, colours, margins, lines, height, width, background images, advanced positions and many other things. See in next posts.

HTML can be used to add layout to websites. But CSS offers more options and is more accurate and sophisticated. CSS is supported by all browsers today.

Advantages of  CSS?



CSS was a revolution in the world of web design. The concrete benefits of CSS include:
  1. control layout of many documents from one single style sheet;
  2. more precise control of layout;
  3. apply different layout to different media-types (screen, print, etc.);
  4. numerous advanced and sophisticated techniques.

Diffrence between html and css??


1. Html stand for Hypertext Markup Language very basis language in use of web page creation,Whilecss Stand for Cascading style sheet ,It is used to create formate of website which apply all the web pages using single css code.
2. Html is quite simple with few keyword while css have big amount of properties and also not a simple language as html.
3. Htmlcan not define custom tag while css define custom tags.
5. Css design apply hole of website while html code not apply hole web site.
6. html used different code for different page while css used same code for hole site.  

Significance of CSS

If properly applied, CSS can give a designer the ability to separate content and
presentation. However, not all Web designers are convinced that CSS are reliable tools
or that content and format should be separated at all in Web publishing.

Which software use to create css code??


CSS can be created by using a normal text editor, Such as notepad and notepad ++ which is similar to creating HTML
Code. And also  use Dreamweaver.



Thursday, 18 July 2013

login form

Making login form using html and css 


Html code
<pre>
<!DOCTYPE >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<link rel="stylesheet" href="formcss.css" type="text/css">
</head>

<body><br><br><br><br><br><br><br><br><br><br>
<div align="center">

<fieldset id="uk">
<legend >login</legend>
<table ><br>
<td width="91"><form action="login.php" name="form" method="post" >
<tr>
<td>UssEr NamE*:</td><td width="193"><input type="text" name="name" placeholder="Enter User Name" id="uk1" > <br></td>
</tr>
<tr>
<td>PassworD:*</td><td><input type="password" name="pass" placeholder="Enter Your Password" id="uk1"></td>
</tr>
<tr>
  <td colspan="50"><input type="submit" name="sub" value="   log in   " /></td>
</tr>
<tr>
<td>*required field</td>
<td><a href="gdvsagdv.php">Forgot Password</a></td>

</tr>
</form>
</table>
</fieldset>

</div>
</body>
</html>

</pre>
Css Code




Saturday, 6 July 2013

Regex in php

                        

                             Regex in php

First of all, let's take a look at two special symbols: '^' and '$'. What they dois indicate the start and the end of a string, respectively, like this:"^The": 

matches any string that starts with "The";

"of despair$": matches a string that ends in the substring "of despair"; "^abc$": a string that starts and ends with "abc" -- that could only be "abc" itself!

"notice": a string that has the text "notice" in it.
You can see that if you don't use either of the two characters we mentioned, as in the last example,
you're saying that the pattern may occur anywhere inside the string -- you're not "hooking" it to any of the edges.

There are also the symbols '*', '+', and '?', which denote the number of times a character or a sequence of characters may occur. What they mean is: "zero or more", "one or more", and "zero or one." Here are some examples:


"ab*": matches a string that has an a followed by zero or more b's ("a", "ab", "abbb", etc.);
"ab+": same, but there's at least one b ("ab", "abbb", etc.);
"ab?": there might be a b or not;
"a?b+$": a possible a followed by one or more b's ending a string.
You can also use bounds, which come inside braces and indicate ranges in the number of occurences:

"ab{2}": matches a string that has an a followed by exactly two b's ("abb");
"ab{2,}": there are at least two b's ("abb", "abbbb", etc.);
"ab{3,5}": from three to five b's ("abbb", "abbbb", or "abbbbb").
Note that you must always specify the first number of a range (i.e, "{0,2}", not "{,2}"). Also, as you might
have noticed, the symbols '*', '+', and '?' have the same effect as using the bounds "{0,}", "{1,}", and "{0,1}",
respectively.
Now, to quantify a sequence of characters, put them inside parentheses"a(bc)*": matches a string that has an a followed by zero or more copies of the sequence "bc";
"a(bc){1,5}": one through five copies of "bc."
There's also the '|' symbol, which works as an OR operator:

"hi|hello": matches a string that has either "hi" or "hello" in it;
"(b|cd)ef": a string that has either "bef" or "cdef";
"(a|b)*c": a string that has a sequence of alternating a's and b's ending in a c;
A period ('.') stands for any single character:

"a.[0-9]": matches a string that has an a followed by one character and a digit;
"^.{3}$": a string with exactly 3 characters.
Bracket expressions specify which characters are allowed in a single position of a string:

"[ab]": matches a string that has either an a or a b (that's the same as "a|b");
"[a-d]": a string that has lowercase letters 'a' through 'd' (that's equal to "a|b|c|d" and even "[abcd]");
"^[a-zA-Z]": a string that starts with a letter;
"[0-9]%": a string that has a single digit before a percent sign;
",[a-zA-Z0-9]$": a string that ends in a comma followed by an alphanumeric character.
You can also list which characters you DON'T want -- just use a '^' as the first symbol in a bracket expression
(i.e., "%[^a-zA-Z]%" matches a string with a character that is not a letter between two percent signs).

In order to be taken literally, you must escape the characters "^.[$()|*+?{\" with a backslash ('\'), as
they have special meaning. On top of that, you must escape the backslash character itself in PHP3 strings, so,
for instance, the regular expression "(\$|¥)[0-9]+" would have the function call: ereg("(\\$|¥)[0-9]+", $str)
(what string does that validate?)

Example 1. Examples of valid patterns

 * /<\/\w+>/

 * |(\d{3})-\d+|Sm

 * /^(?i)php[34]/

 * {^\s+(\s+)?$}

Example 2. Examples of invalid patterns

 * /href='(.*)' - missing ending delimiter

 * /\w+\s*\w+/J - unknown modifier 'J'

 * 1-\d3-\d3-\d4| - missing starting delimiter



For more on php visit php-tutorial