Malicious File Upload Prevention in PHP Php by Rajesh Kumar Sahanee - February 10, 2020February 15, 20200 Hello Friends, today we’ll see malicious file upload prevention in PHP. If in our web application there is file upload feature then we should add this feature with precautions because this is a very easy way for any attacker to inject malicious code in our application.
Cross-Site Scripting Prevention in PHP Php by Rajesh Kumar Sahanee - February 9, 2020February 9, 20200 Hello Friends, Today we'll see Cross-Site Scripting Prevention in PHP. Cross-Site Scripting (XSS) is a web application Vulnerability in which attackers injects client site malicious scripts into web pages which then executes inside victims browser. To Prevent Cross-Site Scripting here we'll use htmLawed. htmLawed is PHP library to purify &
Click-Jacking Prevention in PHP Php by Rajesh Kumar Sahanee - February 3, 2020February 9, 20200 Hello friends, today we are going to learn Click-Jacking Prevention in PHP. Click-Jacking is technique by which user is tricked into clicking on something that is different from what user perceives, thus which can then reveal confidential information or can take control of their computer. In PHP we can prevent
Cross-Site Request Forgery (CSRF) Prevention in PHP Hacking Php by Rajesh Kumar Sahanee - February 1, 20200 Hello, friends today we are going to learn Cross-Site Request Forgery (CSRF) Prevention in PHP by using random token in each request. In Cross-Site Request Forgery (CSRF) attack the victim unintentionally sends web request that takes advantage of their logged in session on a particular site to leak server data,
Upload File to Google Cloud Storage using PHP Php by Rajesh Kumar Sahanee - January 22, 2020April 14, 20200 Hello Friends, It's being very long time and I haven't shared anything. But today I am going to share how to upload file to Google Cloud Storage using PHP. With the help of this code we can upload files from third party hosting as well as from localhost (wamp, lamp,
Next Increment Id in MySQL using PHP Php by Rajesh Kumar Sahanee - June 6, 20190 Hello Friends, Today I am going to share that how to get next increment id in mysql using php. Actually MySQL has AUTO_INCREMENT keyword to perform auto increment on a column value. AUTO_INCREMENT by default starts from 1 and It is incremented by 1 for each new record. To get
Url Rewriting like WordPress Php by Rajesh Kumar Sahanee - June 2, 2019June 2, 20190 Hello Friends, Today I am going to share a code for Url rewriting like WordPress do. I have taken help to develop this code from WordPress codex link mentioned below:- https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/class-wp-post-type.php#L532 https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/class-wp-matchesmapregex.php Actually, these days I am developing CMS in which I was required to do Url rewriting code. So to do Url
PHP Code to Read Theme Information from Theme File Like WordPress Php by Rajesh Kumar Sahanee - May 23, 20190 Hello Friends, Today I am going to share a PHP code to read theme information from theme file like WordPress do. WordPress reads theme information from style.css file of the theme but here in this code I'll read theme information from "theme-info" file. I have developed this code today with
Add Role Chooser in WooCommerce Registration Php by Rajesh Kumar Sahanee - December 2, 20170 Hello Friends, Few days ago I was developing a Wordpress project in which I was required to add role chooser option on WooCommerce registration page, so Now I am sharing this code so that if anyone required this feature on their Wordpress based ecommerce website so they can use this
File Uploading Using Ajax Javascript Php by Rajesh Kumar Sahanee - October 15, 2017October 16, 20170 Hello Friends, Today I am going to share File Uploading using Ajax code in PHP. There is three methods in the code by which file can be uploaded using Ajax which are : Uploading With Form Tag Uploading Without Form Tag Uploading Without Form Tag Without Submit Button Here is the