Tag archives for PHP

PHP Session: A simple tutorial for session

Besides cookies, there is one more way to pass information to different web-pages: Sessions. A session-enabled page allocates unique identifiers to the users the first time they access the page, and then reassociates them with previously allocated ones when they return to the page. Any global variables which were associated with the session will then […]

PHP Files: What is its importance in PHP

There are many built-in functions in PHP to handle files and directories. Using these functions we can read, write, delete, and get lots of information of the files. To perform any funtion on a file we should have the right permission which will allow us to manupulate that file. Creating and Deleting a File We […]

PHP Includes: What is it?

include() The include() function includes and evaluates the specified file. The include() statement takes all the contents of the specified file and copies it to the one which consist this statement. vars.php <?php $color = ‘green’; $fruit = ‘apple’; ?> test.php <?php echo “A $color $fruit”; // A include ‘vars.php’; echo “A $color $fruit”; // […]

PHP Form: A simple tutorial for PHP Form

Setting up a form in PHP script is exactly the same as in HTML Setting Up Your Form As in HTML, the form elements are enclosed within <form> tags. Here is a small example. <form action=”process.php” method=”post”> Form elements and formatting etc. </form< The form element takes two values, First is the form’s “action” that […]

PHP Functions: What is the importance of functions in PHP

Function play a very important role in any programming language, including PHP. They are pieces of code which takes in some value processes it and produce results. Funtions are very useful when you are writing repetitive code, and you are in need of same code in some other script. Function with no Arguments: For a […]

Importances of Operators in PHP

Operator is a symbol or can be a series of symbols, which when used with some values performs some action and produce a new value. Assignment Operator Assignment operator “=” is most widely used operator in PHP. This operator is used to initialize the variable.This operator is used in between two operands. It evaluates right-hand […]

What is PHP variable and what is its importance in PHP?

As with any other programming languages, PHP allows to define variables. In PHP there are many variable types,but the most common among them is a String variable. String Variable A String variable holds text and numbers. All strings begin with a symbol “$”. To assign some text to the string you can use the following […]

PHP Syntax: what is it?

Actually writing PHP on your computer is very simple. except text editor (like Notepad in Windows) You don’t need any specail software. and you are ready to write your first PHP script. General Syntax for PHP PHP scripts should always be enclosed in between two PHP tags. This tells the server to parse all the […]

How to download and install PHP in you Pc

Since we know that PHP is a server side scripting language, there is no need for your users to install new software, your web host will need to have PHP setup on their server. If your server dont support PHP you can ask web host to install it as it is free to download. How […]

PHP Introduction: A guide for PHP learners

Up untill very few people even attempted scripting on the internet, let alone mastered. Though many people started building their own websites, scripting languages become more important. This has made scripting languages easier to learn and PHP is one among those scripting language. PHP is the most powerful scripting language. What Is PHP? PHP stands […]

Cookies in PHP: wht is it and importance?

After a request from script or a server user’s browser stores small amount of data, This data is called cookie. Cookie can be accessed in three ways by a PHP script: In a cookie there are information about a name, value, expiry date, host and path. As cookies are sent from server through HTTP header, […]

PHP Email: Try to understand it

The major advantage of server side scripting language is that, it provides a way to take a form input from a server and send e-mail to a perticular e-mail address. The Mail Command Many of the scripting languages require special set up(like CGI) to send an e-mail, But with PHP it is very easy, since […]

PHP Sql: the database of PHP

The process of accessing and working with a database connection from within a PHP script is as follows. First you need to establish a connection to the database server. You should have to validate any user input Then select the database on the server to use. Execute all the desired query against the database. Furter […]