Category: PHP

encode and decode query string value using php

In this tutorial, we will be explaining how to encode and decode query string value using PHP when developing a search module/filter for some kind of listing which will be accessible to the public and it is advised not to show the actual ID of the data, the user may use the ID to do

URL encoding and decoding using php

PHP supports encoding and decoding of URL by providing some built-in functions. Encoding is required before sending URL data to query string or to a function which might dynamically work on this URL data. And then, this data will be decoded into its original form, after receiving it in target PHP page or function. Types

Simple php pagination using php and mysql

In this tutorial, we are going to discuss how to implement PHP pagination using PHP and MySQL with simple PHP code. In our previous tutorial, we have seen how to add,edit and delete records from database using PHP and MySQL .If we add more records the number of rows increases and they all display at

How to install Apache XAMPP on Windows

This article will explain how to install Apache XAMPP on Windows. XAMPP is a free open source software that provides an easy way for web designers and developers to install PHP based software like WordPress, Drupal, Joomla, and others on Windows, Mac OS X, and Linux. If you’re a web developer, designer, or a person

How to Create a File in PHP

File Create The fopen function needs two important pieces of information to operate correctly. First, we must supply it with the name of the file that we want it to open. Secondly, we must tell the function what we plan on doing with that file (i.e. read from the file, write information, etc). Since we

PHP Strings

PHP Strings variables are used for values that contain character strings. A string can be used directly in a function or it can be stored in a variable. For example The output of the code Hello World The Concatenation Operator There is only one string operator in PHP. The concatenation operator (.) is used to

PHP variables

Variables PHP variables are used for storing a values, like text strings, numbers or arrays. When a variable is set it can be used over and over again. Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive. The correct way of setting a