What is PHP
An Open-source, reflective scripting language, PHP is popular with Web developers creating server side appication software. Most often used in tandem with MYSQL databases, PHP features high-speed scripting with caching and is augmented with compiled code pug-ins.
Breif PHP History
PHP was created in 1994 by Rasmus Lerdorf to track the visitors to his online résumé; thus, it originally stood for “Personal Home Page. ” As its capabilities grew (and as more people started to use it), it came to stand for “PHP: Hypertext Preprocessor,” which basically means that PHP handles data before it becomes HTML (HyperText Markup Language).
According to the official PHP Web site, PHP is “a server-side, cross-platform, HTML embedded scripting language. ” This may sound like a mouthful, but it’s fairly straightforward and meaningful when broken down into its parts.
First, server-side refers to the fact that everything PHP does occurs on the server (as opposed to on the client, which is the Web site viewer’s computer). A server is simply a special computer that houses the pages that you see when you go to a Web address with your browser.
PHP is cross-platform, meaning that it can be used on machines running almost any operating system--Unix, Windows NT, Macintosh, OS/2, to name the most popular ones. Again, that’s the server’s operating system, not the client’s. Not only that, but unlike with most other programming languages, your work can be switched from one platform to another with very few or no modifications.
To say that PHP is HTML embedded means you can put it into your HTML code--HTML being the code with which all Web pages are built. Therefore, scripting with PHP can be only slightly more complicated than hand-coding HTML. If you can make a basic HTML Web page, you can make a dynamic one, too.
Last, PHP is a scripting language, as opposed to a programming language. This means that PHP is designed to do something only after an event occurs; for example, when a user submits a form or goes to a URL. Programming languages such as Java, C, and Perl can write standalone applications, while PHP cannot. The most popular Web scripting language is JavaScript, which commonly handles events that occur within the browser (for example, when a mouse goes over an image), and is not dissimilar to PHP, although JavaScript is a client-side technology. In fact, if you can already work with JavaScript, you won't have a problem mastering PHP.
|