Posts in "MySQL"

Disable WordPress Comment System Completely

May 2, 2025

Here’s a comprehensive function to completely disable the WordPress comment system. Add this code to your theme’s functions.php file or in a custom plugin. <?php // Completely disable WordPress comments...

Block HTtrack or any other web scrapper

Apr 22, 2025

There are several web scrappers tools are available by which your website can be downloaded as static files. To block these webscrappers, just create a .htaccess file inside your website...

WordPress change default from name and email id

Apr 8, 2025

When you get any email from your self hosted WordPress website, form name of that email will be WordPress which is quite annoying to you or your clients. You can...

WordPress custom menu page, fetch data from custom MySQL table and export to CSV

Apr 3, 2025

To create a custom menu page in WordPress, retrieve custom table data from MySQL, and display it with the ability to export to CSV/Excel, you can follow these steps: Step...

PHP script to download file from specific folder

Mar 11, 2025

Below is a simple example of a PHP script that allows you to download file from a specific folder. You can link to this PHP file with the file name...

Upload image and PDF file using PHP

Feb 10, 2025

Here is a PHP script that allows users to upload image and PDF files with a maximum size of 5 MB. The uploaded files will be renamed using the current...