PHP

Sessions in PHP

A session is a way to store data (in variables) that can be used on more than one page. The information is not stored on the user’s computer like a cookie would be. When a PHP script wants to get the value from a session variable, PHP automatically gets the unique session identifier string from […]

Sessions in PHP Read More »

PHP Cookies

What’s a Cookie? Often, a cookie is used to figure out who a user is. A cookie is a small file that is put on the user’s computer by the server. When the same computer’s browser requests a page, it will also send the cookie. With PHP, you can both make cookies and get their

PHP Cookies Read More »

PHP File Handling

Managing files is an important part of any web app. For many tasks, you need to open and work on a file. PHP Handling Files PHP has a number of functions that can be used to create, read, upload, and edit files. When you change files, be careful! You have to be very careful when

PHP File Handling Read More »

PHP File Include

The include (or require) statement adds all of the text, code, and markup from the given file into the file that uses the include statement. When you want to put the same PHP, HTML, or text on more than one page of a website, including files is a great way to do it. There are

PHP File Include Read More »

PHP Superglobals Variables

Superglobals are built-in variables that are always available in all scopes. They were added to PHP 4.1.0. Some of PHP’s predefined variables are “superglobals,” which means that you can always use them, no matter what their scope is. You can use them from any function, class, or file without doing anything special. We’ll learn about

PHP Superglobals Variables Read More »

PHP GET & POST Methods

The browser client can send information to the web server in two ways. The GET Method The POST Method Before the browser sends the information, it uses a method called URL encoding to make sure it is safe. In this scheme, pairs of name/value are joined by equal signs, and pairs of different names/values are

PHP GET & POST Methods Read More »

PHP Functions

PHP’s functions are what give it its real power. PHP comes with more than a thousand built-in functions, and you can also make your own. Functions that come with PHP PHP has more than a thousand built-in functions that can be called directly from a script to do a certain job. Check out our PHP

PHP Functions Read More »

PHP Strings

PHP Strings are groups of characters, like “PHP supports string operations.” NOTE: Built-in string functions are listed in PHP String Functions Function Reference. Here are some good examples of string: $var= “This is a string with double quotes”; $var_2 = “This is a string that is a bit longer and has only one quote”; $var_39

PHP Strings Read More »

Scroll to Top