WHAT A LAMP Rotating Header Image

Posts Tagged ‘PHP’

Strings in PHP

String variables are used for values that contains character strings.
In this tutorial we are going to look at some of the most common functions and operators used to manipulate strings in PHP.
After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in [...]

PHP Variables

A variable are used for storing a values, like text strings, numbers or arrays.
When a variable is set it can be used over and over again in your script
All variables in PHP start with a $ sign symbol.
The correct way of setting a variable in PHP:
$var_name = myvalue;
New PHP programmers often forget the $ sign [...]

Escaping from HTML – php code block

There are about 4 or five type of ways to put the php code into Webpage.
I prefer to use following format

<?php echo 'if you want to serve XHTML or XML documents, do like this'; ?>
via

Automattic Stats is easy to install and use

Automattic Stats is just released from WordPress. Installing this stats plugin is much like installing Akismet, all you need is to put in your API Key and the rest is automatic.
The installation file is just one php file. I download it from here. Decompress it and put it under plugins folder.
Once it’s running it’ll begin [...]

What is PHP

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
The PHP syntax is very similar to Perl and C. PHP is often used together with Apache (web server) on various operating systems. It also supports ISAPI and can be used with Microsoft’s IIS on [...]