Category: PHP (Page 6 of 15)

Learn PHP programming through practical examples and tutorials. This category covers core PHP concepts, form handling, file opera

How to remove non alphanumeric characters using PHP

Last updated on August 30th, 2022 at 04:14 pmNon-Alpha numeric characters are any which is not A-Z,a-z or 0-9. In this tutorial we will discuss on how to remove or replace non alphanumeric characters using php. We have two examples in the demo one is removing the non alphanumeric characters and the other is replacing […]

How to prevent direct access to PHP file

Last updated on March 23rd, 2022 at 02:06 pmSome months ago I have written a code using PHP to prevent direct file access, today I have modified the script since it had some errors. Let us take one file named direct-php.php as an example, all you have to do is just add the below code […]

How to detect browser language using PHP

Last updated on November 13th, 2024 at 10:17 amThis tutorial presents a script designed to identify the language settings of a user’s browser and subsequently redirect them to a page tailored for their specific language or location. For websites that support multiple languages, this script comes handy as it allows for the detection of the […]

How to send HTML email using PHP

Last updated on November 7th, 2024 at 01:20 pmA Beginner’s Guide to Sending HTML Emails with PHP: Tips and Best Practices. This PHP script is used to send an HTML email with custom headers and content. It sends an email to a recipient with the specified subject, message, and headers using the mail() function. Here […]

« Older posts Newer posts »