Buttons-to-Edit-Next-Previous-Post

Buttons to Edit Next/Previous Post in WordPress

Today I have created and uploaded my new WordPress plugin which is used to add shortcut buttons to edit next and previous post directly from admin edit post page. You can easily navigate to next or previous post from the current post, so this will save your some time. Plugin…

Calculate Aspect Ratio of Image or Video in PHP

Calculate Aspect Ratio of Image in PHP

Sometimes during in PHP web application development, we come across a need where we require to calculate the aspect ratio of the image based on its width and height. Below PHP function will return aspect ratio for eg. width is 1920 and height is 1080 then aspect ratio would be…

Remove index.php in Codeigniter- Apache nginx localhost

Remove index.php in Codeigniter

In this tutorial I will explain you how to remove index.php from Codeigniter in Apache or Nginx (wamp, xampp or Ubuntu). As we know Codeigniter by default add index.php in URL which makes URL like this: example.com/index.php/users/aftabmuni But this looks not good as per user as well as SEO point…

Htaccess to Add or Remove slash from end of URL - PHP, WordPress

Htaccess to Add or Remove slash from end of URL

Many times in WordPress or other PHP websites we can across a situation in which Google considers a particular post with ending slash (/) after URL and without slash as two different URL and thus it shows Pages with duplicate title tags in Google Webmaster Console. For e.g: https://example.com/this-is-post-urland https://example.com/this-is-post-url/…

CONVERT LATIN CHARACTERS TO PLAIN TEXT IN PHP