Home


INTRODUCTION:

The PHP programming language is a server-side HTML embedded scripting language.

Let‘s depict the sentence. The PHP language runs on the server-side. This means that the execution (read starting) of the scripts are done on the server where the web-site is hosted. HTML embedded means that you can use PHP statements (read a piece of PHP code) from within an HTML code. PHP files are returned to the browser as plain HTML.

The last piece of the sentence – scripting language – is a little harder to explain, but we will give it a go. A scripting language is a form of programming language that is usually interpreted rather than compiled. In programming languages such C or C++ you compile the program (permanently) into an executable file, before you can execute the program. A program that is written in a scripting language, is interpreted one command at a time by a command interpreter (Command interpreter is in most cases an executable written in another language (for instance C/C++) than the scripting language.) Some other examples of scripting languages are Perl, Phyton, Java and Ruby.

What is PHP?

  • PHP stands for PHP: Hypertext Preprocessor.
  • As we said before it is a server-side scripting language.
  • PHP is free and is an open source software product.
  • The PHP scripts are executed on the server.
  • PHP supports many databases (MySQL, Sybase, Oracle and many others.)
  • PHP runs on different platforms (Unix, Linux, Windows.)
  • PHP is compatible with almost all web-servers used today (Apache, IIS, etc.)
  • A PHP file can contain plain text, HTML tags and scripts
  • The PHP files can have one of the following extensions: php, php3 or phtml.

How to start Php

To get started php first of all Download Wamp server/XAMPP server on your local computer

Download Notepad++

You don’t need any fancy programs to work with PHP. In fact, all Window’s computers come standard with a program called Notepad, that is used to create plain text documents. Here is how you use it to create a PHP file.

  1. Open Notepad: By default you can usually find Notepad by choosing Start > All Programs > Accessories > Notepad from your start menu.
  2. Type in your PHP code: Enter your PHP program into Notepad.
  1. <?php
  2. echo “Hello, World”;
  3. ?>
  1. Save your work:
    • Go in c://programfiles/xampp server/www
    • Choose Save As from the File menu.
    • Enter the file name as your_file.php being sure to include the .php extension.
    • Then set the “Save As Type” to All Files.
    • Finally, hit the Save button.

Now go to web Browser and Type local host hit Enter

and find your Program

What is a MySQL Database?

What is a MySQL database? A MySQL database is a web hosting database that is used to store web site information like blog posts or user information. A MySQL database is the most popular type of relational database on the web today. This is partly because it is completely free but also very powerful.

What is a MySQL database used for?

MySQL is the database of choice for several different web programming languages including PHP, Ruby on Rails, and Python. These programming languages make is extremely easy to connect to a MySQL database. It is also used for many popular content management scripts like Joomla!, Drupal, WordPress and WikiMedia.

What is phpMyAdmin?

Databases can be difficult to manage using just individual SQL statements. It is much easier to manage a database using a graphical user interface (GUI). One of the best and most popular GUI’s for managing a MySQL database is called phpMyAdmin. It is a web-based application that makes it easy to manage your MySQL database. phpMyAdmin will let you add, remove and manage databases, tables, and entries; backup the database, run specific SQL queries, search and import record, and much more. Learn more about what is phpMyAdmin from its official website.

What is phpMyAdmin

Learn more about MySQL on its official website. They have comprehensive documentation and have forums and training. You should also check out the SQL tutorial on W3Schools and some articles in Sitepoint’s PHP & MySQL section.

If you are looking for a web host that supports MySQL, look at our comparison of the best MySQL Hosting or try our web hosting wizard which will give you more search options.

The History of PHP

PHP is an “HTML-embedded scripting language” primarily used for dynamic Web applications. The first part of this definition means that PHP code can be interspersed with HTML, making it simple to generate dynamic pieces of Web pages on the fly. As a scripting language, PHP code requires the presence of the PHP processor. PHP code is normally run in plain-text scripts that will only run on PHP-enabled computers (conversely programming languages can create standalone binary executable files, a.k.a. programs). PHP takes most of its syntax from C, Java, and Perl. It is an open source technology and runs on most operating systems and with most Web servers. PHP was written in the C programming language by Rasmus Lerdorf in 1994 for use in monitoring his online resume and related personal information. For this reason, PHP originally stood for “Personal Home Page”. Lerdorf combined PHP with his own Form Interpreter, releasing the combination publicly as PHP/FI (generally referred to as PHP 2.0) on June 8, 1995.

Photobucket

Leave a comment