how to make seo friendly url using php
Utilizing URLs on your site that are program friendly is straight forward and straight forward to try to to because of PHP and Apache. we'll be utilizing permalinks that get obviate all the nasty $_GET data that trails the top of most PHP scripts. An example of a SEO...
PHP Program to count Page Views
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...