What is PHP Used For

A widely used general purpose scripting language that is especially suited for web development. PHP code may be embedded into HTML code or pages. You can use it in combination with various web template systems, Content Management Systems, web frameworks, or even executed with a Command Line Interface (CLI)

Advantages of PHP

PHP is used for creating dynamic websites and platforms
PHP is a Server Side coding language
PHP use is completely free, as well as more powerful and efficient over programs such as Microsoft ASP
PHP will run on multiple platforms like Windows, Mac OS X, Linux, Unix, etc.
PHP is very portable and convenient to use
PHP can open, write, add, modify, read, delete, and close database information completely on the Web Server
PHP will collect data from forms and send to email or data bases
PHP can connect to almost any Web Servers such as Apache, nginx, IIS by Microsoft, LiteSpeed Web Server, GWS by Google
PHP can receive, store and send cookies. Perform data encryption
PHP will output not only HTML, but also PDF, Flash, XML files or any other text type file

What distinguishes PHP from client side JavaScript is that the code is executed on the Web Server. It generates HTML which is then sent to the client. The client receives the results of the PHP script with out knowing what the underlying code was. You can even configure the Web Server to process all your HTML files with PHP and then there would be no way that users can tell how you are coding your website
In fact RSH Web Services website runs completely by PHP


information on hosting


PHP is extremely simple for a newcomers but also offers many advanced features for those professional programmers. Don't be afraid reading the long list of PHP's features. You can jump in and start writing simple scripts in no time

Although PHP's development is focused on server-side scripting, you can do much more with it

An introductory example of a PHP page

<!DOCTYPE html>
<html lang=en>

        echo "Hi, I'm a PHP script!";

Instead of a lot of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end processing instructions that allow you to jump into and out of "PHP mode"


PHP is mainly focused on server-side scripting, Any other programs like CGI such as collect form data, generate dynamic page content, or send and receive cookies PHP can do

There are three main areas where PHP scripts are used

Server Side Scripting

This is the main target field for PHP. You need three things to make PHP work: the "PHP parser" (CGI or server module), a "Web Server" and of course a "Web Browser". You need to run the Server with a connected installation of PHP. You can access the program output with any web browser. This can also run on your home machine if you are trying out PHP

Command Line Scripting

You can make a PHP script run without any server or browser. You only need the PHP parser to use in this way. This type of use is ideal for PHP scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows). This can also be used for simple text processing tasks

Writing Desktop Apps

PHP is really not the best language to create a desktop application with a graphical user interface, but if you know PHP good and use some advanced PHP features in your client side applications. You also can write cross platform applications. PHP-GTK is an extension to PHP, not available in the main distribution. If you are interested in PHP-GTK, visit Their Website

PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD, Microsoft Windows, macOS, RISC OS, and no doubt others. PHP also has support for most of the web servers today

This includes Apache, IIS, and many others. And this includes any web server that can utilize the FastCGI PHP binary, like lighttpd and nginx

PHP works as either a module, or as a CGI processor and you have the freedom of choosing any operating system and a web server. You also have the choice of using procedural programming or object oriented programming (OOP), or a mixture of both

With PHP you are not limited to just HTML output. PHP's abilities includes images, PDF files and flash movies

Using libswf and Ming, generated on the fly. You could also output easily any text, such as XHTML and any other XML file
PHP can auto-generate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content

One of the best and most significant features in PHP is the support for a wide range of databases. Writing a database-enabled web pages is incredibly simple using one of the database specific extensions to any database supporting the Open Database Connection standard via the ODBC extension. Other databases may utilize cURL or sockets like CouchDB

PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open raw network sockets and interact using any other protocol. PHP has support for the WDDX complex data exchange between virtually all Web programming languages. Talking about interconnection, PHP has support for instantiation of Java objects and using them transparently as PHP objects

PHP Resources

PHP Official Website
A complete resource for everything PHP. PHP is a popular general purpose scripting language that is especially suited to web development

PHP Manual
The official online manual for the PHP language

PHP Builder
Articles and tutorials in PHP programming, PHP snippets, PHP tutorials and PHP Forums

This article is about the scripting language PHP: Hypertext Preprocessor. Or simply PHP. A general purpose programming language originally designed for web development

PHP Tutorial by W3Schools
Another popular programming tutorial site for PHP

A free flat forum bulletin board software solution

PHP Extension and Application Repository and useful PHP packages. PEAR is a framework and distribution system for reusable PHP components

Microsoft Azure
Microsoft Azure PHP Tutorial contains PHP tutorial and documentation related to Azure cloud computing services

MySQL Homepage
From the Oracle Corporation, download the latest MySQL release

Zend Technologies is the leading provider of products and services for developing, deploying and managing business critical PHP applications

PHP Cheat-sheets
PHP Cheatsheets is a quick reference guide for intermediate to advanced programmers

PHP Scripts

Listing Free, Open Source and Paid scripts
Warning: Be careful when downloading PHP scripts. Never assume the code is harmless

Source Forge
Listing over 600 php scripts

PHP Junkyard
Free PHP scripts for your website. PHP scripts that made this website famous

Advanced Power of PHP. Providing cost effective - free and or low cost professional and reliable PHP scripts and components

Free Theme-Templates
Offering Php Scripts and Project files free to download

Claiming over 900 PHP scripts, coding components and classes

The largest collection of free scripts on the web. The PHP category alone has over 9,000 scripts

lists free PHP scripts that you can use on your website to provide various functions

The Website doesn’t host the scripts. It links to the creators sites

Not to be confused with HotScripts, HScripts is a much smaller collection that’s provided by the site itself

PHP Jabbers
Download the free PHP scripts listed below along with the full source codes and customize them

Affordable PHP Hosting Services from RSH Web Services

Tweet  Share  Pin  Tumble  Email


Recent Posts