10
May
Posted by navid100 in XHTML. Tagged: PHP lessons, PHP Tutorial, PHP Variables. Leave a Comment
ariables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script.
Variables in PHP
Variables 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 [...]
Continue reading »
10
May
Posted by navid100 in PHP. Tagged: PHP Installation, PHP lessons, PHP Tutorial, script, web. Leave a Comment
What do You Need?
If your server supports PHP you don’t need to do anything. Just create some .php files in your web directory, and the server will parse them for you. Because it is free, most web hosts offer PHP support.
However, if your server does not support PHP, you must install PHP.
Here [...]
Continue reading »
10
May
Posted by navid100 in PHP. Tagged: PHP lessons, PHP Tutorial, script, tutorials. Leave a Comment
PHP is a server-side scripting language.
What You Should Already Know
Before you continue you should have a basic understanding of the following:
HTML
Some scripting knowledg
What is PHP?
PHP stands for PHP: Hypertext Preprocessor
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic [...]
Continue reading »
10 May
PHP Syntax
Posted by navid100 in XHTML. Tagged: Basic PHP Syntax, Comments in PHP, PHP Syntax, PHP Tutorial. Leave a Comment
PHP code is executed on the server, and the plain HTML result is sent to the browser.
Basic PHP Syntax
A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.
On servers with shorthand support enabled you can start a scripting block [...]
Continue reading »