Friday, 12 September 2014

How to create automatic password using php


Password is widely used in computer as a security mechanism so we must make a password in such a manner which cannot be   guessable by any one. Mostly peoples make password pattern related to their life i.e. date of birth,city name,address or something like that which can be guess easily. So we must stop this practice, A strong password may be difficult to guess.
A strong password comprises special character, numeric, small and capital case character combination that restricts hacker to guess it. So I am representing coding that generate password automatically in strong form. You can use my coding if you want to generate password automatically.
<?php
                $msg="";
                 function makeRandomString ($length=8)
              {
                  $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQ
                  RSTUVWXYZ0123456789!%,-:;@_{}~";
                  for ($i = 0, $makepass = '', $len = strlen($chars); $i < $length;
                  $i++) $makepass .= $chars[mt_rand(0, $len-1)];
                  return $makepass;
       }
                if(isset($_POST['pass']))
                                $msg=makeRandomString(10);
?>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
                <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post" >
                <input type="submit" value="Get password" name="pass" />
        <h1><?php echo $msg;?></h1>
    </form>
</body>

</html>

Thursday, 11 September 2014

Girfa Pics



Picture

A picture is a visual capture of an object. Pictures are created using another hardware device such as a digital camera or a scanner and not the computer. The picture of pictures shown here is a good example of a picture.




Wednesday, 10 September 2014

How to Add a Widget to Blogger

Widgets, also known as gadgets, are small tools or applications that can be added to a website or blog to enhance its content or functions, or to pull content and services from third-party websites. Widgets come in multiple forms, such as countdown tickers, photos, games, or interactive social media applications that allow you to chat. Some widgets in Blogger serve the purpose of enhancing your blog, such as listing your blog followers or allowing readers to subscribe to your blog content. Here are steps on how to add a widget to Blogger.

Tuesday, 9 September 2014

PHP Paging


I have made a website for flat selling. Many customer enquiries daily for flat booking by filling enquiry form. I have made an admin page which shows enquiry data of customer, everything was ok but when enquiry got increase then admin page data also increase so my client had to scroll very long that was not a good interface. So I decided to show enquiry table content page wise.
Thanks to limit clause used by MYSQL. You can use limit clause with select statement for limit the returns row from database, its takes two clause as a record number start and stop

I.e. Select * from Enquiry limit 0, 10


You can change limit clause argument for desire row, fist number for start and second one stand for stop retrieving row form table.

Click here to download full example