Amazon.com: PC Books || Educational Software || Magazines
Amazon: Books-CA || Software-CA || Books-UK || Software-UK

HTML | Javascript | ASP | PHP | VBScript | SQL | Hardware | PC FAQ| WinXP|

Learn to Build, Upgrade, or Repair your Computer Ebook + PC Safety 101 kwwebservice.com Reasonably priced web development & hosting
PHP Basics
Introduction
Variables & Arrays
Sub & Functions
If Statements
Case Statements
Loop Statements
Date Objects
Form Processing
Text File Objects
Database Access
Adding Record
Updating Record
Deleting Record
Virtual Includes
Cookies
Session
Server Variables
Creating Login Page
E-mail
PHP Books @
CA Amazon
UK Amazon
US Amazon

  :: Home
PC Topics
  :: Build A PC
  :: Windows XP
  :: PC Help
Tutorials
  :: HTML
  :: JavaScript
  :: ASP
  :: PHP
  :: VBScript
  :: SQL
Miscellaneous
  :: Code/Scripts
  :: Forum
  :: Links
  :: Contact us
  :: Tell A Friend
  :: In Somali
  ::
Web Articles
  Top Web Hosting
Reviews
  Processing
Online Card Payment Guide
  Domain name
registration & buying guide
  Getting
a website online guide
  Search Engine
submission & optimization tips
Netfirms Web Hosting
Free trial
Quality business correspondence.
Yahoo! Search Marketing


Installing PHP

There are two ways to install PHP on windows platform available for download at php.net. Either by using windows installer or manual binary installations. In both cases, download the most recent version of PHP from php.net .

Windows Installer

Using windows installer is the easiest way to install PHP but might not automatically install all the functions you might want use.

1. Download PHP 5.2.0 installer .

2. Select country mirror and follow the installation instructions.

Test PHP

The easiest way to test if php installation was successful is to create php page and call phpinfo() function. To do this, simply create file with any text editor such as notepad or textpad and place this code <? phpinfo();> and save it under your web server root directory with the file extension php Eg: try.php. Open this file on your web browser and it should display php information on your browser.

Basics of PHP

PHP stands for Hypertext Preprocessor. It's multi platform sever side script language. When php file is request by the browser, the browser does not send the page back to the client browser instead its content is interpreted & processed by the server. PHP is also script language that you combine with HTML document if PHP installed on your server.
You can create php file using any text editor such as, textpad, notepad, simple text, BBEdit or any other similar editors.
All ways start your PHP script with tag<? or <?php and end the tag ?>

PHP Structure

The following are three different ways you might structure your php script file.

<?
  //Php code here
  echo "hello World"
?>

or
<?php
  //Php code here
  echo "hello World"
php?>

or
<script language="php">
  //Php code here
  echo "hello World"
</script>

All 3 ways are valid ways to structure your php script // is comment line for php which means that script will ignore that line completely and echo or print will write the quoted string "hello world" on your browser.

Variables & Arrays
Bluehost.com Web Hosting $6.95
PC System Tools
SpyCleaner
Registry Mechanic
4Diskclean Pro
Health PC Club
TweakNow
Registry Washer
SpyAnyWhere
System Lifeguard
...More/Details

PC Articles
  Computer Safety
prevent viruses & Spyware