Things you shoud know before start learning php
13 Feb 2008 Author: adnanb In: PHPPHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual.
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, etc.)
- PHP is an open source software (OSS)
- PHP is free to download and use
<?php
echo “I’m on cafetutorials.com”;
?>
There is some thnigs you should know before
- HTML / XHTML
- CSS- you can finde some articles about css in our section
Usage
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. PHP generally runs on a web server, taking PHP code as its input and creating Web pages as output. However, it can also be used for command-line scripting and client-side GUI applications. PHP can be deployed on most web servers and on almost every operating system and platform free of charge. The PHP Group also provides the complete source code for users to build, customize and extend for their own use.
PHP primarily acts as a filter. The PHP program takes input from a file or stream containing text and special PHP instructions and outputs another stream of data for display.
Syntax
PHP only parses code within its delimiters. Anything outside its delimiters is sent directly to the output and not parsed by PHP. PHP supports a number of different delimiters. The most common delimiters are
<?php ?>
or
<script language="php"> </script>
so these two forms are the most portable.
Short tags
(<? or <?= and ?>)
are also quite commonly used, but are along with ASP style tags.
The example above outputs the following:
I’m on cafetutorials.com
This is our first tutorial in this section.Many more tutorials are coming so be prepared
Next tutorial will be about php variables





