Skip to main content

Posts

How to Remove index.php from URL in CodeIgniter

Hello Friends ajj me apko btaunga ki Codeigniter me index.php file kese remove kare- By default hmare file http://example.com/index.php/tutorials/ is parkar se show hoti hai jab b aap kisi be codeignter web site ya project ko access karte ho to. But ham ise or seo friendly and short bana sakte hai . yanha se index.php file ko remove karke. Index.php file remove karne ke bad hmara website url is parkar hoga. http://example.com/tutorials/ How To remove Index.php File- Iske liye apko root folder me .htaccess file open karne hai or wanha diye gye code ko remove karke wanha niche diye gye code ko paste kar dena hai. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] Aur .htaccess file ko save kar de. Ab aap http://example.com/tutorials/ enter karke apne website or project ko access kar sakte ho easily. Agar apko koi problem a rhe hai to aap comment me puch sakte ho. Thank You Gajabwap W...

How to send auto response email in PHP

Hello friends ajj me apko autoresponce email ke bare me btaunga. Autoresponse email kya hai or iska use kiu kiya jata hai- App logo ne dekha hoga ki jab ham internet me kisi website me signup ,register karte hai to us website ke dwara automatically hmare email id par  thanks ka message bhej diya jata hai.iska fayda ye  hota hai ki user ko confermation mil jati hai mail ke dwara ki   uska form ,data successfully register ho chukka hai. Yanha ham php mailer library ka use karke user ke mail id par autorespoce message send karege. Steps-make a index.php file index.php <center><!DOCTYPE html> <html> <body> <fieldset> <form method="post" action="mail.php"> <h1> Autoresponse Contact Form</h1> Firstname:<br> <input type="text" name="first_name"> <br> Lastname:<br> <input type="text" name="last_name"> <br...

How To Scrap Data Of Any Website Using Curl

Hello friends ajj me apko btaunga ki kis parkar ham kisi b website ka data scrap kar sakte hai Curl and File_get_contents Function Ka Use Karke- steps- 1-make a simple html form-sabse pehle ek html form create kar lijiye jiski madad se user webaddress enter karke submit karega 2- make a function-ab ham ek scrap name se fucntion create karege janha ham curl ko initialize and iske sare operation karege Method1 -How to scrap DATA with Curl- <form method="post" id="scrap_form" action=""> Enter Website URL To Scrape Data<br> <input type="input" name="website_url"><br> <input type="submit" name="submit" value="Submit" > </form> <?php function Scrap($website_url){ $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $website_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $output = curl_exec($curl); curl_close($curl);...

User Registration Form WITH Mobile OTP-SMSHorizon API In PHP

Hello friends ajj me apko btaunga ki Smshorizon api ka use karke user ke mobile par otp message kese send kare- Steps for send otp with smshorizon api- Index2.php <center> <fieldset> <form action="mail.php" method="post"> <h1> Send Otp With SMSHORIZON</h1> Message<input type="text" name="message"> <br><br> Mobile<input type="text" name="mobile"> <br> <input type="submit" name="submit" value="submit"> </form></fieldset> </center> <br> <br> <br> Yanha index2.php file ke madad se ham ek form create karege jiski madad se user message and phone number enter karke submit karega. mail.php <center> <?php session_start(); // Replace with your username $user = " bhupenderkashya2222p41511111 ";//enter your username he...

How To Send Message In Php With FAST2SMS API-Full Detail In Hindi

Hello friends ajj me apko btaunga ki Ham  kis  parkar se  ham fast2sms api ka use karke message send kar sakte hai Fast 2sms  website dwara hame kuch message testing perpose ke liye free me diye jate hai jiska use karke ham apne code ke testing kar sakte hai ki hmara code work kar raha hai ya nahi. Steps for send message with fast2sms api in php- 1-sabse pehle aap   fast2sms.com website open kijiye 2-ab app is website par signup kar lijiye 3-ab aap login kar ligiye. 4-yanha dashboard me redirect  hone ke bad aap  dev api par click kijiye 5-yanha ap dev api ke ander se apni api key collect kar lijiye or ise niche diye gye code me paste kar dijiye. Index.php <?php        if(isset($_POST['submit'])){   $curl = curl_init(); $mobile=$_POST['mobile']; curl_setopt_array($curl, array(   CURLOPT_URL => "https://www...

How To Create User Registration With Mobile OTP In PHP -Full Guide In Hindi

Ajj is article me apko btaya jayega ki ham mobile Otp verification signup form kese bana sakte hai.apne mostly bdi bdi website jese google ,facebook etc me dekha hoga ki jab be ham signup karte hai to pehle hmare pass google or facebook ke traf se ek otp code hmare phone number me ata hai jab ham us otp ko signup form me enter karke verify karte hai tbhi hmara account banta hai. ajj me apko isi ke bare me btane wala hu jiski madad se aap ye feature apni website me integrate kar sakte ho.Mere is post ko read karne ke bad aap easily within 5 minute me Mobile OTP Verification Php script Bana Sakte ho. Mobile Otp Verication Kiu Jarruri Hai-apko me iska sidha or simple answer btata hu mobile verification ke help se users (hackers)kisi dusre user ke mobile number ko kisi be account,spam account banana ke liye use nhi kar sakte hai……otp ki wajah se hmara number tbhi registered hota hai agar ham otp code dal kar signup form verify karte hai…… Steps for simple Mobile Otp Verificati...

Image Gallery Me Pagination Kaise Integrate Kare-Php , Mysql and Bootstrap

Hello friends ajj me apko btaunga ki kis parkar ham image gallery ,me pagination integrate kar sakte hai.yanha ham  php mysql and bootstrap ka use karege image gallery me pagination karne ke liye. Demo-- Image Gallery Pagination with php and mysql index.php <h1> Image Pagination With Php & Mysql         </h1> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "malala";//enter your databse name here $conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error()); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $limit = 8; if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; }; $start_from = ($page-1) * $limit; $sql = "SELECT * FROM dem...