AppServ

What is PHP?

PHP, which stands for "Hypertext Preprocessor", is a server-side, HTML embedded scripting language used to create dynamic Web pages. Much of its syntax is borrowed from C, Java and Perl with some unique features thrown in. The goal of the language is to allow Web developers to write dynamically generated pages quickly. In an HTML page, PHP code is enclosed within special PHP tags. When a visitor opens the page, the server processes the PHP code and then sends the output (not the PHP code itself) to the visitor's browser. It means that, unlike JavaScript, you don't have to worry that someone can steal your PHP script. PHP offers excellent connectivity to many databases including MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, and Generic ODBC. The popular PHP-MySQL combination (both are open-source products) is available on almost every UNIX host. Being web-oriented, PHP also contains all the functions to do things on the Internet - connecting to remote servers, checking email via POP3 or IMAP, url encoding, setting cookies, redirecting, etc.

What do PHP code look like?
PHP is a rather simple language. Much of its syntax is borrowed from C except for dealing with the types of variables. You don't need to think of the types of variables at all - you just work with their values, not their types. And you don't have to declare variables before you use them.
Basic Syntax
  • File name:
    You should save your file with the extension .php (earlier versions used the extensions .php3 and .phtml).
  • Comments:
    // This comment extends to the end of the line.
    /* This is
    a multi-line
    comment
    */
  • Escaping from HTML:
    A PHP code block starts with "
    ". A PHP code block can be placed anywhere in the HTML document.
  • Instruction separation:
    Each separate instruction must end with a semicolon. The PHP closing tag (?>) also implies the end of the instruction.

 What Does MySQL Mean?

MySQL is a type of database, and it is popular with several Content Management Systems and widely available. There are many types of databases, so you should make sure that the type of database offered by your host is compatible with the software you plan to use.

Installing Appserv on Windows
Installing Apache Web Server, php and MySQL individually on Windows is not easy task. Because it might takes long time time to make so many configurations to work well such as editing in .ini setting, httpd.conf and many services and extensions used by Apache, php and MySql.
Appserv includes Apache, php, MySQL and phpMyAdmin in one package and you can install in a minute without make any configuration.
Let’s get started.
  • Check the version history from Appserv.
  • Download the latest stable released Appserv windows installer version from SourceForget.net.
Installing Appserv
Run the Appserv setup (.exe) file which you downloaded.
Before you install Appserv package make sure that you stop IIS if you has installed IIS in your machine because only one web server can run in single machine.
  • You’ll see Welcome Message, click ‘Next’
  • You’ll see License Agreement, click ‘Next’
  • Choose the installation directory, c:\appserv as default. Click “Next”.
  • Select the applications you wish to install, all of four services checked as default. Click ‘Next’.
  • Enter the Apache web server information. Normally, you can put whatever you want. In Web Server Name, you can put “www.example.com” or something like this. Administrator’s Email Address, put your email address or “k_man@example.com”.
  • Enter password for Mysql root user, enter a password which is easier to remember when you login to mysql database as root.
  • You’ll see installation progress.
  • Start Apache web server and Mysql service. Click “Finished”.
Source from: Google

1 comments:

Cris Monde said...

Beginners always starts on basic, and base on your post, you really helped us to know the basic about PHP. Thanks for sharing this and hope to see more on your post here.

Cris | PHP Developers

Post a Comment

Search