How to Protect CodeIgniter Forms with CSRF Tokens
Edit Config.php file $config[‘csrf_protection’] = FALSE; $config[‘csrf_token_name’] = ‘csrf_test_name’; $config[‘csrf_cookie_name’] = ‘csrf_cookie_name’; $config[‘csrf_expire’] = 7200; $config[‘csrf_regenerate’] = TRUE; $config[‘csrf_exclude_uris’] = array(); Replace the above code with : $config[‘csrf_protection’] = TRUE; $config[‘csrf_token_name’] = ‘csrf_test_name’; $config[‘csrf_cookie_name’] = ‘csrf_cookie_name’; $config[‘csrf_expire’] = 7200; $config[‘csrf_regenerate’] = TRUE; $config[‘csrf_exclude_uris’] = array(); <form action=” ” method=” “> </form> Replace the form […]
How To Add Ai Chatbot in Web Application Using Php ?
Add ai chatbot in your web application What is ai chatbot ? First of all,ai chatbot is automated program that simulates and processes human conversation for example. written and spoken,ai chatbot gives humans the opportunity to talk to a digital device, to have a conversation as if they were talking to a real person. ai […]
5 Star Rating And Review System in Php
Star rating and review is a type of rating scale utilizing a star symbols or similar other symbols. It is used by reviewers for ranking things such as products, Services, hotels, and others. For example, a system of one to five stars is commonly used in hotel ratings, with five stars being the highest rating. […]
Track location using Ip Address in Php
Track location using Ip Address in Php track location by ip address in php <?php $ip = getenv(“REMOTE_ADDR”) ; $url = “https://ipinfo.io/”.$ip.”/json”; $userInfo = file_get_contents($url); $result = json_decode($userInfo,true); echo “<b>IP Address : </b>”.$result[‘ip’].”<br>”; echo “<b>City : </b>”.$result[‘city’].”<br>”; echo “<b>State : </b>”.$result[‘region’].”<br>”; echo “<b>Country Code : </b>”.$result[‘country’].”<br>”; echo “<b>Latitude & Longitude : </b>”.$result[‘loc’].”<br>”; echo “<b>Timezone : […]
Get Ip Address Using Php
Get Ip Address Using Php get ip address using php script <?php $ip = getenv(“REMOTE_ADDR”) ; echo $ip; ?>
Live Data Search using Ajax jquery in mysql php.
Create Database create database : testing create table : tbl_customer CREATE TABLE IF NOT EXISTS `tbl_customer` ( `CustomerID` int(11) NOT NULL AUTO_INCREMENT, `CustomerName` varchar(250) NOT NULL, `Address` text NOT NULL, `City` varchar(250) NOT NULL, `PostalCode` varchar(30) NOT NULL, `Country` varchar(100) NOT NULL, PRIMARY KEY (`CustomerID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14; Insert Records in database: INSERT […]
How to recover database from xammp folder
1- Rename the folder mysql/data to mysql/data_old (you can use any name) Rename the folder data to old_data in mysql folder, You can use Any name. Path: xammp/mysqli/data 2- Create a new folder mysql/data Path: xammp/mysqli/data 3- Copy the content that resides in mysql/backup to the new mysql/data folder 4- Copy all your database folders […]