In Association with Amazon.in   Flipkart

Sunday, September 30, 2012

Sample PHP Script Program

PHP Script will be directly embaded in the HTML as follows:


PHP Software’s


APPSERV : AppServ is a free and open source full-featured of Apache, MySQL, PHP, phpMyAdmin software's for Windows. You can setup in 1 minute.   It Supports only windows.


WAMP (Windows Apache MySql and PHP)
WAMP is an acronym formed from the initials of the operating system Microsoft Windows and the principal components of the package

 
XAMPP : is a free and open source cross-platform web server package, consisting mainly of the Apache HTTP Server, MySQL database and interpreters for scripts written in the PHP and Perl programming languages.
 
XAMPP's name is an acronym for:
X (meaning cross-platform)
Apache HTTP Server
MySQL
PHP
Perl


MAMP (MAC Apache MySql and PHP)  :
 A free open source Software only
for Mac Operating System.


LAMP (Linux Apache Mysql and PHP) :
A combo software pack as the license is absolutely free and they all are open source software's for Linux.

 

PHP A Server-Side Scripting Language



PHP is a server-side scripting language, which is a Web Server technology in which a user’s request is fulfilled by running a script directly on the web server to generate dynamic HTML pages. It is usually used to provide interactive web sites that interface to database or other data stores.
 
Why PHP?
* PHP is a server-side scripting language, which will executed on the server.
* PHP supports many databases (MySQL,  Informix,  Oracle,  Sybase, PostgreSQL,  Generic ODBC, etc…)
* PHP is an open source software.
* PHP runs on different platforms (Windows, Linux, Unix, etc.)
* PHP is free to download and use. 
 
PHP History
Ø PHP Original name was “Personal Home Page” Tools and the new name was selected by community voting.
Ø PHP was created in late 1994 by Rasmus Lerdorf, a software engineer and Apache team member.
Ø Version 2 was released under the title PHP/FI and included form Interpreter (a tool for parsing SQL queries).
Ø By 1997 this was used in 50000 sites worldwide. Zeev Suraski and Andi Gutmans (Israel Programmers) developed PHP3 and PHP4.
Ø PHP5 poised Object Oriented Programming functionality.

 
 

XML (EXtensible Markup Language)


* XML was designed to transport and store data.
 
* XML is a markup language much like HTML.
 
* XML was designed to carry data, not to display data.
 
* XML tags are not predefined. You must define your own tags.
 
* XML is designed to be self-descriptive.

JavaScript Interpreted Language


* JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more.
 
* JavaScript was designed to add interactivity to HTML pages
 
* JavaScript is a scripting language.
 
* A scripting language is a lightweight programming language.
 
* JavaScript is usually embedded directly into HTML pages.
 
* JavaScript is an interpreted language (means that scripts execute without preliminary compilation)

CSS (Cascading Style Sheets)

CSS
(Cascading Style Sheets)

¯CSS provides more information to the HTML tags.
 
¯CSS file Save a lot of Style works.
 
¯Styles define how to display HTML elements.
 
¯Styles were added to HTML to solve a problem.
 

XHTML ( EXtensible Hyper Text Markup Language )

XHTML
( EXtensible Hyper Text Markup Language )

*XHTML is a stricter and cleaner version of HTML.
* XHTML is HTML defined as an XML application
* XHTML is a combination of HTML and XML (EXtensible Markup Language).
* XHTML consists of all the elements in HTML, combined with the strict syntax of XML.

HTML ( Hyper Text Markup Language )

HTML
( Hyper Text Markup Language )

* HTML is a language for describing web pages.
* HTML is not a programming language, it is a markup language.
* A markup language is a set of markup tags.
* HTML uses markup tags to describe web pages.

W3C (World Wide Web Consortium)

(World Wide Web Consortium)
 
* W3C is working to make the Web accessible to all users.
 
*W3C was created in October 1994,  created by Tim Berners-Lee
 
*W3C creates and maintains WWW Standards
 
* W3C Standards are called W3C Recommendations (HTML, XHTML, CSS, XML, JAVA SCRIPT etc…)

 

Related Posts Plugin for WordPress, Blogger...