Thursday, May 16, 2013

General Information about PHP and MySQL



This section holds the most general questions about PHP: what it is and what it does.
   
   Ø  What is PHP?
   Ø  What does PHP stand for?
   Ø  What is the relation between the versions?
   Ø  Can I run several versions of PHP at the same time?
   Ø  What are the differences between PHP 4 and PHP 5?
   Ø  I think I found a bug! Who should I tell?


Ø  What is PHP?

PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

Ø  What does PHP stand for?

PHP stands for PHP: Hypertext Preprocessor. This confuses many people because the first word of the acronym is the acronym. This type of acronym is called a recursive acronym. For more information, the curious can visit » Free On-Line Dictionary of Computing or the » Wikipedia entry on recursive acronyms.

Ø  What is the relation between the versions?

PHP/FI 2.0 is an early and no longer supported version of PHP. PHP 3 is the successor to PHP/FI 2.0 and is a lot nicer. PHP 5 is the current generation of PHP, which uses the » Zend engine 2 which, among other things, offers many additional OOP features.

Ø  Can I run several versions of PHP at the same time?

Yes. See the INSTALL file that is included in the PHP source distribution.


While PHP5 was purposely designed to be as compatible as possible with previous versions, there are some significant changes. Some of these changes include:
    
   Ø  A new OOP model based on the Zend Engine 2.0
   Ø  A new extension for improved MySQL support
   Ø  Built-in native support for SQLite
   Ø  A new error reporting constant, E_STRICT, for run-time code suggestions
   Ø  A host of new functions to simplify code authoring (and reduce the need to write your own functions for many common procedures)


MySQL


MySQL pronounced either "My S-Q-L" or "My Sequel," is an open source relational database management system. It is based on the structure query language (SQL), which is used for adding, removing, and modifying information in the database. Standard SQL commands, such as ADD, DROP, INSERT, and UPDATE can be used with MySQL.

MySQL can be used for a variety of applications, but is most commonly found on Web servers. A website that uses MySQL may include Web pages that access information from a database. These pages are often referred to as "dynamic," meaning the content of each page is generated from a database as the page loads. Websites that use dynamic Web pages are often referred to as database-driven websites.
Many database-driven websites that use MySQL also use a Web scripting language like PHP to access information from the database. MySQL commands can be incorporated into the PHP code, allowing part or all of a Web page to be generated from database information. Because both MySQL and PHP are both open source (meaning they are free to download and use), the PHP/MySQL combination has become a popular choice for database-driven websites.


To Make your own Classifieds websites in Php with MySQL database Log on to: www.posty.in