Just after posting some lover sentences, here we are going to share some beautiful phrases.
Today, we just share some love sentences so that you guys can get a break.
The most happy marriage I can picture or imagine to myself would be the union of a deaf man to a blind woman. — Samuel Taylor Coleridge
One should always be in love. That is the reason that one should never marry. — Oscar Wilde
Love is a word that is constantly heard,
Hate is a word that is not.
Love, I am told, is more precious than gold.
Love, I have read, is hot.
But hate is the verb that to me is superb,
And Love but a drug on the mart.
Any kiddie in school can love like a fool,
But Hating, my boy, is an Art.
And
When you love someone, all your saved-up wishes start coming out.
~ by Elizabeth Bowen (1899-1973) ~
And
My mind is filled up with you,
My mouth is filled up with your taste,
My nose is filled up with yoursmell,
I can not think clear for i am in love.
But it is all clear, I am in love with you.
-Anonymous-.
If you need to write a letter to your lover, you can use above lover sentences.
A variable is something for storing information.
Variables in PHP
Variables are used for storing a values, such as arrays, numbers or text strings.
Once a variable is declared, it could be used in your script, over and over again.
In PHP, all variables start with a $ (dollar) sign symbol.
Below tells how to correctly declare a variable in PHP script:
<?php $var_name = value; ?>
If you forget the $ sign at the very beginning of your variable, your variable will not work.
Below, we declare a variable contains a number and a variable contains a string:
<?php
$txt = “Hello World”;
$number = 16;
?>
PHP is a loosely Typed Language
In PHP, users do not need to declared a variable before adding any value to it.As what showed above, users do not need to tell the PHP what kind of data type the variable is.PHP is able to converts the variable for the correct data type, all depending on the value of variable.In some other strongly typed programming language, users need to declare the data type and name of a variable before using it.
In PHP, variables are automatically declared.
Rules for Naming Variables
A variable in PHP must be started with an underscore”_” or a letter
A variable name only contains underscores and alpha-numeric characters (0-9,a-z, A-Z, and _ )
A variable can not contain spaces. In case, a variable contains more than one word, users can separate it with capitablization ($myString) or with underscores ($my_string)
PHP is a server side language, PHP code is only executed on the server end, and return plain HTML result to the browser.
Basic PHP Syntax:
PHP scripting block starts with <?php and ends with ?>
<?php ?>
A PHP scripting block is allowed to be placed anywhere in a PHP document.
You can start a PHP scripting block with <? and ends it with ?>, but these shorthand is not recommended.
<?php
?>
A PHP file is allowed to contains some HTML tags, simply like an HTML file, as well as some PHP scripting code.
What you see below is a very simple PHP script, which return to the browser a text “Hello World”:
<html>
<body>
<?php
echo “Hello World”;
?>
</body>
</html>
Each line of code in PHP requires ending with a semicolon.The semicolon is somehow like a separator, it tells the server to distinguish one line of PHP scripting from another.
There are two statements for outputing PHP text: echo and print, as what you read, we have used echo statement to output the “Hello World” text.
Note:Your PHP file must have a .php extension, otherwise, the PHP code can not be executed.
Comments in PHP:
In PHP, there are two types of comments:
// for making a single-line comment, while /* and */ for large comment block.
<html>
<body>
<?php
// This is a comment
/*This is
a comment block
*/
?>
</body>
</html>
What do you need?
You need a server which supports PHP, if you have a server with PHP supported, there is nothing to worry.If you buy a web hosting, most servers support PHP, so you just need to upload your PHP files to your web directory.In case, you server does not support PHP.You need to install it.
You can follow the official PHP5 installation tutorial: http://www.php.net/manual/en/install.php
Where to download PHP?
Download PHP for free: http://www.php.net/downloads.php
Where to download MySQL database?
Download MySQL for free: http://www.mysql.com/downloads/index.html
Where to download Apache Server?
Download Apache for fre: http://httpd.apache.org/download.cqi