Welcome To 'Scripters Paradise'
March 17, 2018, 10:43:30 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please Read Our Vision Statement.
Welcome To Our Newest Member: W14OK
  Home Help Search Gallery Flyfamilyguy WebSite Staff List Calendar Login Register  

The Real Tutorial For PHP

Pages: [1]   Go Down
Author Topic: The Real Tutorial For PHP  (Read 432 times)
Global Moderator
Offline Offline

Posts: 4

View Profile WWW
« on: April 06, 2008, 06:41:43 pm »

This Post Will Hold Many Tutorials. Pleast Stand By.

It's Recemended To read this post before you begin this tutorial: http://geeksrus.smfforfree3.com/index.php/topic,4.0.html


Install PHP

What do You Need?
This tutorial will not explain how to install PHP, MySQL, or Apache Server.

If your server supports PHP - you don't need to do anything! You do not need to compile anything or install any extra tools  - just create some .php files in your web directory - and the server will parse them for you. Most web hosts offer PHP support.

However, if your server does not support PHP, you must install PHP. Below is a link to a good tutorial from PHP.net on how to install PHP5:


Download PHP
Download PHP for free here: http://www.php.net/downloads.php

Download MySQL Database
Download MySQL for free here: http://www.mysql.com/downloads/index.html

Download Apache Server
Download Apache for free here: http://httpd.apache.org/download.cgi

Basic PHP Syntax

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.

On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.

However, for maximum compatibility, we recommend that you use the standard form (<?php) rather than the shorthand form.


A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code.

Below, we have an example of a simple PHP script which sends the text "Hello World" to the browser:

echo "Hello World";

Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another.

There are two basic statements to output text with PHP: echo and print. In the example above we have used the echo statement to output the text "Hello World".

Comments in PHP

In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.

<body><?php//This is a comment/*
This is
a comment

** WIll Be Finishing this tutorial Soon **
Report Spam   Logged

Social Buttons

Pages: [1]   Go Up
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Page created in 0.094 seconds with 11 queries.