PHP Strings

This tutorial shows how to handle strings in PHP, different output methods, functions and the significance of using each of them.  A string can be literally expressed in the following ways in PHP 1. Single Quoted 2. Double Quoted 3. HEREDOC 4. NOWDOC (from ver. PHP 5.3.0) Different methods used to handle strings are: 1. Print 2. Echo 3. Sprintf 4. Print_r 5. Var_dump Single Quoted String: The simplest way to specify a string is to enclose it in single quotes (the character ‘). To specify a single quote in… Read More

How to Use Cookies in PHP

What is a Cookie? A cookie is flat file based system used to represent a user of the website. It is stored on the local computer of the user. When you visit a website a cookie may be set to represent the user. Next time he visits the website, he does not need to identify himself manually; instead the cookie will represent him on that website. With the help of PHP, cookies can be created, read and destroyed. The main difference between a session and a cookie is that cookies… Read More

WAMP Server

WAMP SERVER WAMP is an acronym for Windows, Apache, MySQL and PHP. It is a combination of independently created software’s bundled together into a SINGLE installation package to set up a SERVER on your machine with out any hassles. It comes with the GPL License. Apache HTTP Server: Widely know as Apache Server is the most widely used webserver out there. Apache is developed and maintained by an open community of developers under the guidance of the Apache Software Foundation. It is available for wide variety of operating systems like… Read More