Category: PHP

How to remove Characters With ASCII Value > 127 in php using Filters Advanced php

How to remove Characters With ASCII Value > 127 in php using Filters Advanced

The following example uses the filter_var() function to sanitize a string. It will both remove all HTML tags, and all characters with ASCII value > 127, from the string: <!DOCTYPE html> <html> <body> <?php // Variable to check $str = “<h1>Hello WorldÆØÅ!</h1>”; // Remove HTML tags and all characters with ASCII value > 127 $newstr = filter_var($str, […]

PHP – Infinite Scroll Pagination using JQuery Ajax Example jquery

PHP – Infinite Scroll Pagination using JQuery Ajax Example

Step 1: Create posts table In this step we will create new new table “posts” in database. You can use following SQL Query for create “posts” table. So let’s create using bellow sql query: item table: CREATE TABLE IF NOT EXISTS `posts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text […]

How to get file size in PHP

The filesize() function returns the size of the specified file. This function returns the file size in bytes on success or FALSE on failure with check below code. You may also like How to get file sizes KB, MB & GB using PHP and How to convert bytes Into KB, MB and GB using PHP. Code

How to Auto Suggestion of User Name and Email Id Using Ajax ,Mysql, jQuery and PHP

In this tutorial we will create a auto suggestion technique for user registration that is applicable for both User Name and User Email Address. While registration time user registering their username in the username column, that time the same user name already exist in the database, for that we are creating auto generation of username […]