A function is used in almost every programming language to reduce excessive code and for effective code re-usability. In some programming languages function is called as method. In almost every programming language they’re used to perform particular task on regular basis. This way it saves time of programmer and code also becomes more readable. [Read more...]
How to Use HTML Forms With PHP
Some HTML forms pass data from one page to another without the use of database. You can use php to enhance your HTML forms by making sure that these forms are processed properly. For example if you want some condition to be fulfilled before processing the form then it is possible to do so with php. [Read more...]
How to Use Include Function in PHP
Sometimes you need to keep the same data across all pages. For example, take case of website that has common navigation menu, footer and sidebar across all pages. When you build a dynamic site it is important that these parts of a website remains common so that users can access website without any confusion. [Read more...]
How to Use Arrays in PHP
In programming, we represent our data in terms of variable. As variable holds single value of a particular data type. This is not enough when you want to represent more than one value of any variable and in such case you have to use array. [Read more...]
How to Use PHP Variables
Every programming language makes use of variables in order to work with the user data. No matter what type of program you write it involves usage of variables. These variables can be temporary or point to the particular object in the database depending on the program. You’ll be able to reuse the data by using variables in your program. [Read more...]
How to Create Cookies Using PHP
There are many ways with which a web app or website can set cookies inside browser. In this tutorial we’ll take a look at simple way to create and read a cookie. [Read more...]
How to Run PHP File on Computer
Php files can’t be executed on your computer without running webserver services in the background. Webserver is the one that compiles php code and sends it to execute on web browser. You need to install web server in order to run php file on computer. [Read more...]
How to Make a PHP File
PHP File is basically a text file that contains php commands.You can make your own php file using normal text editor and execute on your browser if you’ve apache or php web server installed. It has an extension of .php and it can be created using normal text editor or any modern web development IDE. [Read more...]