Pages

Saturday 2 June 2012

Creating a Simple PHP Program


//program to print Hello World!
<html>
<head>
<title>
A Simple PHP Program
</title>
</head>
<body>
<?php     //Starting of PHP tag
echo "Hello World <br />";
echo "PHP scripting is very easy";
?>          //Ending of PHP tag
</body>
</html>

What is xampp

We haveseen in the first post about php,Why php,advantages of php and many more.
what we have stated is very very important.It is easy to learn all it but very difficult yo implement them.
Firstly we need a XAMPP server  which is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages.
License is under GPL(Genral Public License) and can be freely downloaded from tthe below website:-

Website www.apachefriends.org/en/xampp.html 

We shall now know about installing the xampp.What wwe do is download the XAMPP from above webpage and then visit the website spoken-tutorial.org

Installing Macromedia Dreamveaver 8

We all know for scripting in HTML or javascript pages we have editors in all OS.But for scripting in php we opt for dreamveaver.Which is suitable for any type of scripting .Downloading link for dreamveaver is
www.adobe.com/products/dreamweaver.html .
After installing it we create a new site option from site menu and after filling all the optimal details we are free to start php .

XAMPP introduction and installation

Whatever we have learned in the First Post was just the introduction to PHP.

We know need to install XAMPP.Now the question is what is XAMPP.

It means any operating system  Apache Mysql Perl and Python.

XAMPP is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages.Xampp for windows can be downloaded from http://citylan.dl.sourceforge.net/project/xampp/XAMPP%20Windows/1.7.7/xampp-win3.7.7-VC9-installer.exe
for windows and for Linux from the link.For any query or problem one must refer to site
spoken-tutorial.org which provide video tutorials on PHP. 

Thursday 31 May 2012

PHP introduction


PHP stands for hypertext preprocessor.



PHP is a powerful tool for making dynamic and interactive Web pages.
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP HTML.



Features and Advantages of Php Development



The main features of the PHP scripting language include the following:

Open Source

PHP is an open source language and is freely available for use. The community of open source PHP developers provides technical support and is constantly improving updating the core PHP functionalities. The PHP Extension and Application Repository system provides and maintains a library of PHP code packages that are available for use. The packages can include functions such as authentication, caching, destructors, encryption, error handling etc.

Compatability
PHP provides high compatibility with leading operating systems and web servers such as thereby enabling it to be easily deployed across several different platforms.

File Handling
PHP be used to read text and generate files in various formats such as PDF and XML. Using the file manipulation functions, files and documents can be uploaded and stored on the server. The uploaded documents can be accessed and manipulated through PHP code. PHP can be used to access flat files and perform basic file and directory maintenance tasks thereby enabling files/documents to be edited remotely.

Improved Performance
The PHP complier includes features to optimize and improve the quality of compiled code by reducing the size execution time of the code thereby leading to improved performance. The compiled PHP code can be cached using various PHP accelerators such as xcache, eAccelerator etc thereby reducing time spent in parsing and compiling the code every time.

Debuggers
Several debuggers are available with PHP enabling developers to identify and analyze the code for potential bugs and bottlenecks.

Sessions
PHP provides extensive session and cookie management features and functions enabling the creation and development of personalized web pages.

Graphics
PHP can be used to generate images and graphics dynamically. Using the image functionalities available with PHP, the header information of images an be accessed and manipulated. The GD library of PHP includes a host of features and functionalities that can be used to create images in various formats such as gif, jpeg and png.

Extensible
The source code of PHP can be modified to include custom created extensions and components thereby increasing its extensibility.

ADVANTAGES:


PHP application development offers the following benefits and advantages over application development in other server side scripting languages:


PHP is available under the open source license thereby making it a cost effective option.

Speeds the load time and improves browsing experience as processing happens on the server.

Major open source packages are written in PHP thereby enabling easy customization and development.

Compatible with all major operating systems, web servers and browsers.

Includes a host of in-built features that simplify programming of common tasks.
Corporate websites
Intranet applications
Real estate portals

Hypertext Preprocessor (PHP) is a cross platform open source server side scripting language that can be used to generate dynamic and interactive web pages. PHP scripts or codes can be embedded within HTML pages. When a request is sent for a PHP page, the server parses and executes the code and returns the output as plain HTML. PHP scripts can be written to interact with databases and include a host of database connectivity features providing support for a wide range of platforms such as MySQL, Microsoft SQL Server, Oracle, PostgreSQL etc. PHP can be used to create web applications ranging from personal websites to e-commerce applications and community web portals i.e. disucssion forums, blogs etc. Apart from web applications and server side scripting, PHP can be used for command-line scripting and client-side GUI application development.

PHP is based on an Object Oriented Architecture and most of its features, concepts and syntax are based on the C and Perl programming languages. Being an open source language, a large number of libraries and extensions, to extend its core functionalities, are available for download. PHP extensions include support for features such as XML parsing, compression utilities, dynamic generation of images, translation functions etc.

PHP scripts can run across operating systems such as Linux, Windows, Solaris, OpenBSD, Mac OSX etc and also provide support for all major web servers such as Apache, IIS, iPlanet etc.