Ajax Tutorials, PHP Tutorials, Javascript Tutorials, Visual Basic.Net Training, XHTML tutorials, php script library, PHP Codes, Programming tutorials, web development tutorials
Web Development Tutorials, Programming Tutorials, PHP Script Index
Home | Forums | Downloads | Books | Submit Content | Links

Programming Articles

  PHP articles
  MySql articles
  Visual Basic.Net articles
  Java articles
  ASP articles
  ASP.Net articles
  Visual Basic articles
  CSS articles

Programming Tutorials

  PHP tutorials
  MySql tutorials
  Visual Basic.Net tutorials
  Java tutorials
  ASP tutorials
  ASP.Net tutorials
  Visual Basic tutorials
  HTML tutorials
  CSS tutorials

Programming Source Codes

  PHP scripts
  Visual Basic.Net scripts
  JavaScript scripts
  ASP scripts
  ASP.Net scripts
  Visual Basic scripts

Our Partners

  Free Resources
  Publisherbank
  Free Link Directory
  PHP Magazine
  Webmaster Passion
  Search Engine Bank
  Free Directory Site
  Free PHP Scripts
  Links Shopping Mart
  Variety Bazar
  Urdu Office Tutorials
  Evernew Scripts
  Evernew Scripts
  Evernew Directory
  Our Achievements
  Web templates
  Buy and Sell Templates
  Text Link Traders
  Directory Metro
  Gifts Choice
  Valentines Ecards
  Template Directory

Introduction to PHP

Date:2006-02-13

What is PHP?

  • PHP stands for PHP: Hypertext Preprocessor
  • PHP is a server-side scripting language, like ASP, Coldfusion, Perl
  • PHP is a programming language was designed for creating dynamic websites
  • PHP supports many databases like MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.
  • PHP is an open source software and you can download free from www.php.net.

Why PHP?

  • PHP is easy to learn and runs efficiently on the server side
  • PHP runs on different platforms like Windows, Linux, Unix, etc.
  • PHP is compatible with almost all servers used today like Apache, IIS, etc. .

What is an PHP File?
An PHP file is a text file that contains HTML, XML Tags, Text and scripts. The scripts in PHP files are excuted on the server. The file extension of PHP file is ".php".

PHP Requirements

PHP Tags

PHP has following tags:

Start Tag End Tag
<?php ?>
<script language="php"> </script>
<? ?>
<% %>

 

 

 

First PHP Script 

For write first script of PHP, Open notepad. Type the below example and save the file at C:\apache\htdocs\filename.php,

<?php
print "Hello World!";
?>

In this script <?php is used for start PHP tag.

print is used to print any statement on page. Another function echo is also to print any statement on page.

semicolon (;) is used for end any statement .

?> is used for end php script

 

Comments in PHP

Comments are used for ignore any statements.There are two comment tags used in PHP.

// (Single Line Comments ) will comment out a single line of coding.

<?php
// print some text
print "my first PHP script!";
?>

/* */ (Multiple Line Comments ) will comment out a block of code.

<?php
/*
print some text
this is a comment
over more than one line
*/
print "my first PHP script!";
?>


Desclaimer | Privacy Policy | Submit Content | Links | Link to Us | Sitemap |Contact Us
Copyright Programming Tutorials, Web Development Tutorials, Source codes © All Rights are Reserved.
Powered By Evernew Solutions

Share Dealing - Loans - Debt Consolidation - Best Credit Cards