Skip to main content

Posts

How to Enable IMAP iN php.ini file in Localhost

step1-click on start and search php.ini and open this file step2- press ctrl+f then enter  extension=php_imap.dll and search step3- change  ;extension=php_imap.dll   To  extension=php_imap.dll step4-then save the code step5- restart the xammp server \\ for Gamil-login gmail account>>>>>open setting>>>>>>open forwording imap and pop >>>>>>then tick checkbox for enable imap now its working fine

How to preview image and its attributes before click on submit button with Javascript

Demo -Preview Image and its name ,size ,type before upload Step1-Create a input field in a form <p id="fp"> </p> <img id="output_image" height="100px" width="100px"/> <form id="uploadForm" action="" method="post"> <label>Upload Image File:</label> <input name="uploadImg" id="img" type="file" class="demoInputBox" accept="image/*" onchange="preview_image(event)"/> <br> </form> ste2- create a script <script type='text/javascript'> function preview_image(event) { var reader = new FileReader(); reader.onload = function() { var output = document.getElementById('output_image'); output.src = reader.result; } reader.readAsDataURL(event.target.files[0]); var fi = document.getElementById('img'); // GET THE FILE INPUT. // VALIDATE OR C...

How to create source code viewer of any web page with Php ajax and jquery

Hello friends today I will tell you about how to create a source code  viewer of any website with php Demo- View source code of anyweb page Step1 –first create a  a file viewsource.php file <style> body{width:610px;} #uploadForm {border-top:#F0F0F0 2px solid;background:#FAF8F8;padding:10px;} #uploadForm label {margin:2px; font-size:1em; font-weight:bold;} .demoInputBox{padding:5px; border:#F0F0F0 1px solid; border-radius:4px; background-color:#FFF;} #progress-bar {background-color: #12CC1A;height:20px;color: #FFFFFF;width:0%;-webkit-transition: width .3s;-moz-transition: width .3s;transition: width .3s;} .btnSubmit{background-color:#09f;border:0;padding:10px 40px;color:#FFF;border:#F0F0F0 1px solid; border-radius:4px;} #progress-div {border:#0FA015 1px solid;padding: 5px 0px;margin:30px 0px;border-radius:4px;text-align:center;} #targetLayer{width:100%;text-align:center;} </style> <script src="https://code.jquery.com/jque...

How to send multiple attachment(phpmailer) with php mailer Using Ajax,jquery

How to send multiple attachment with php mailer Hello friends today I will tell you how to create a multiple email(attachment) sender tool with php,ajax and jquery without page refresh Just follow two steps- Download full code- download Step1-create a index.php file </center> <center> <br> <br><br><br><br><br> <center>   <center>    </center> <style> body { width: 610px; } #uploadForm { border-top: #F0F0F0 2px solid; background: #FAF8F8; padding: 15px 30px; } #uploadForm div { margin-bottom: 20px; } #uploadForm div label { margin-left: 5px } .demoInputBox { padding: 10px; border: #F0F0F0 1px solid; border-radius: 4px; background-color: #FFF; width: 100%; } .demoInputBox:focus {     outline:none; } .btnSubmit { background-color: #263327; border: 0; padding: 10px 40px; color: #F...

Display Loading Image While Page Loads using jQuery and CSS

Demo- LIve Demo Loading code-Create a Index.html file <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script type="text/javascript"> $(window).load(function() {     $(".loader").fadeOut("slow"); }); </script> <style> .loader {     position: fixed;     left: 0px;     top: 0px;     width: 100%;     height: 100%;     z-index: 9999;     background: url('https://cdn.dribbble.com/users/830587/screenshots/4381223/loader_gif.gif') 50% 50% no-repeat rgb(249,249,249);     opacity: .8; } </style> </head> <body> <div class="loader"></div> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <h1>Lorem ipsum dolor sit amet, consectetu...

How to extract zip file with php

CODE- <?php         $zip = new ZipArchive;     $zip->open('sample.zip');     $zip->extractTo('./');     $zip->close();  ?>

How to Send SMS With Paysify sms gateway

Hello friends today we will discuss about how to send sms with paysify sms gateway. Paysify   is the best and simple sms gateway for sending sms with php Step1-create a account on   https://paysify.com/ website Step2-after login in you will get your api keys   copy your api keys and paste it in following code Code- <?php                             function send_sms($senderid,$number,$message,$route){                   $message = urlencode($message);                   $api_key = " YOUR_API_KEY ";                   $url = 'https://api.paysify.com/send_sms?api_key='.$api_key....