Posts

Showing posts from November, 2014

Create New Project in Laravel

first install composer from   here . then go to your cmd Prompt in windows. go to your wamp directory and type following command. composer create-project laravel/laravel project_name --presfer-dist now laravel download in your directory with project-named folder now open this and enjoy with laravel....

How to Disable Keyboard on Any Web Page

<script> document.onkeydown = function (e) { return false; } </script>   FOR SAMLL PART OR DIV   <script> $ ( selector ). keydown ( function ( event ) { return false ; }); </script>

How to Add Favicon Image in Your Html Site

<link rel = "shortcut icon" type = "image/png" href = "/favicon.png" /> <link rel = "shortcut icon" type = "image/png" href = "http://eg.com/favicon.png" />

how to send mail with background images

<?php $to = "kr.krishna1995@gmail.com"; $subject = "hello how are you."; $message = " <html> <head> <title>HTML email</title> </head> <body> <p>This email contains HTML Tags!</p> <table background='http://www.rapscspl.com/forest/wp-content/uploads/2014/10/teresa-pic.png'> <tr> <th>Firstname</th> <th>Lastname</th> <form> </tr> <tr> <td>John</td> <td>Doe</td> </tr> </table> </body> </html> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\\r\ "; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\\r\ "; // More headers $headers .= 'From: <vikashgupta40@gmail.com>' . "\\r\ "; $headers .= 'Cc: myboss@example.com' . "\\r\ "; mail($to,$su