Post Pic

PHP file upload

PHP file upload system allows you to upload files to the server. First of all, you need to allow users to select files through a form. Secondly, when the user select file and submit, you have to write code for file upload in the targeted file or functions. Finally, save it to a directory. Upload […]

Read More
Post Pic

PHP include

We can reuse our code by PHP include. It’s actually a PHP statement that evaluates a specified file. If we want to use common code for all header and footer section then it needs php include. How can we do that? The answer is we need to write code for header and footer on separate […]

Read More
Post Pic

PHP Operators

php operators is a character or set or characters used for various special operations. As for example, in order to perform addition we need to use (+) sign which is the arithmetic operator. If we want to assign a value to a variable, (=) equals sign is used and it’s called assignment operator. List of […]

Read More
Post Pic

PHP functions

Sometimes we need to write same code at different places. It’s a problem in terms of code maintenance because if we want to change a bit then we have to change many places. PHP functions are self enclosed blocks of code that execute a particular “function”. It often takes many parameters or arguments and returns […]

Read More
Post Pic

PHP For Loop

PHP for loop complex than while loop but more suited. PHP for loop can repeat the code continuously for a defined number of times. When the defined number arrived then goes out of the loop and executes the rest on the code. General Structure of PHP for loop: Example: We can consider same example that […]

Read More
Post Pic

PHP While Loop

“While loop” is the simplest loop in PHP. It allows you to run same code continuously until dissatisfy the condition given by you. That means when the conditions will not be fulfilled, break the loop and run the rest of the codes of the page. Structure of PHP While Loop: Example: The code below executes […]

Read More
Post Pic

PHP array

PHP array is a structured map. Map is actually a type that links values to keys. Group of related data can be stored in one variable using array. For example, if you have many employees data with name, phone, address. You can create an array to hold all information. You need none other than just […]

Read More
Post Pic

Color Picker Using PHP

Hello Guys, Here is a nice demonstration for you to make a color picker using only PHP. I think this will help you to create template theme color a little bit easier. Just Copy and Paste the source code below in a “something.php” file and run it through server or local server. This will look […]

Read More
Post Pic

Responsive Gallery Using Only Bootstrap 3

In the world of web designing Bootstrap is a famous responsive framework. To design a website we use bootstrap a lot but when there is a need of an image gallery for displaying a lot of images, we often use one or more jquery plug-ins for creating those galleries. This sometimes makes the site a […]

Read More

Url, Email and User Id Validation in PHP

There’s a few validation we need frequently.  Email, url and user id validation are required both in Php and JavaScript. Usually I use regular expression for those. For Email Validation For Url Validation For User Id validation Using filter_var() function is quiet easy. By using it we can easily validate email and url without using […]

Read More
 Page 1 of 2  1  2 »

Categories