Tag: php
PHP str_replace & str_ireplace Function Alternative for JavaScript
Search a string within a string using PHP stristr function
Use the function below to search a string within a string. This function is case-insensitive. Use stristr for case-insensitive and strstr for case-sensitive.
Read MoreMake a Cross Domain AJAX Request by JS & PHP – Tutorial
This tutorial is all about Cross Domain AJAX Request. We will learn how to do a Cross Domain AJAX Request with both GET and POST method by using simple JavaScript and PHP with cURL, file_get_contents and fopen.
Read MoreRequesting or Making AJAX Call with GET & POST Method
Here you will learn how to requesting / making an AJAX call with GET and POST method. Below is the minimum code required for a successful AJAX call with both GET and POST method. I’m using PHP for processing data, but you may use ASP, JSP or any other server side scripting language for that.
Read MoreHow to Show AJAX Loading Animation GIF Image
Here you will learn how to show a AJAX loading animation GIF image and hide the image when loading is finished. We will modify CSS property of the loading element via JavaScript at right timing.
Read MorePHP MySQL Login System with Remember Me, Online Status, Forgot Password & User Profile
Howdy folks, As I promised to you, I’m back with PHP MySQL Login System with Remember Me, Online Status, Forgot Password & User Profile option. This tutorial is much advanced than the previous one and it is a extension of that. If you are a beginner, then you should start reading with the previous article... continue reading.
Read MoreHow to Upload and Validate Files using PHP
Howdy coders, In this post, I’m going to show you how to upload and validate files using PHP. At first we’ll need a simple HTML form with an input type=”file”, then we’ll catch the uploaded file from PHP using $_FILES[“file”]. Then we’ll validate it by extension, mime-type and file size; then process it further.
Read MorePHP MySQL Login System – A Super Simple Tutorial
Hello everyone, In this post we are going to create a very simple PHP MySQL login system. At the beginning, we will show a registration form to users and store user given data into MySQL database. Then we will create a login page where we take username and password and let users logged in if... continue reading.
Read MoreMobile UA (User Agent) Detection Function in PHP
This is a simple PHP function to detect Mobile UA (User Agent). You can uncomment line 24 and line 28 to get which user agents got caught by this function. Returned values are ‘mobile’ if UA is mobile and ‘computer’ if not mobile.
Read More