Click, download a file, and redirect to another page
Follow the below instruction and modify your code with my code <!DOCTYPE html> <html> <head> <title>Click, download file and redirect to another page</title> </head> <body> <a href="23.jpg" download...
How to get previous date from given date in php
How to get the previous date from a given date in PHP Just insert below code and you will get the previous date <?php echo date("D jS M Y",strtotime("-1 days"));?> Here is output Mon 10th Aug 2020

how to replace all special characters except underscore and period in php?
how to replace all special characters except underscore and period in PHP? <?php $string="a quick borown fox jump over the lazy dog & ( jkl/)-ov"; echo $string = preg_replace('/[^a-zA-Z0-9_.]/', '-', strtolower($string)); ?>...

how to use Select Box with Search Option using jQuery and php
How to use Select Box with Search Option using jquery and PHP? Step1: Create select2 folder Step2: Add index.html inside html add following code <!doctype html> <html class="demo"> <head> <meta charset="utf-8"> <meta...

how to get your facebook feed on your website
add a Facebook feed on your website. Just update your Facebook page link in below code <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src =...

image preview before upload using php
image preview before upload using PHP When the user selects a picture, an onChange event is triggered on the file input field and that we can use JavaScript's readURL() class to onchange event to display the image for preview. When the user choose the file, the input...

How to convert an HTML website to WordPress
How to convert an HTML website to WordPress Step 1: Preparing for HTML to WordPress Conversion The first and foremost thing is to choose the right hosting plan that best fits your requirements. Once you’ve purchased a plan, you will need to install WordPress and log...

How to remove .php, .html, .htm extensions with .htaccess
What is an .htaccess file An .htaccess file may be a simple ASCII file that you simply create with a text editor like Notepad or TextEdit. The file lets the server know what configuration changes to form on a per-directory basis. Please note that .htaccess is that the...
How to Increase the Maximum File Upload Size in WordPress
How to Check Your Maximum File Upload Size Limit in WordPress? WordPress will automatically show the utmost file upload size limit once you are uploading images or media. to see it you'll simply attend Media » Add New page and you'll see the utmost file uplaod size...

how to remove .php extension from url in php
remove .php extension from url in php Just follow these steps Open .htacess file and copy below code in .htacess file RewriteEngine On RewriteRule ^test?$ test.php Here test is your page name Now you can visit your page like abc.com/test remove ?id from url in...