Friday, February 9, 2007

PHP Tutorial

PHP Tutorial - Introduction

Learn PHP

PHP - What is it?

Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly."

This is generally a good definition of PHP. However, it does contain a lot of terms you may not be used to. Another way to think of PHP is a powerful, behind the scenes scripting language that your visitors won't see!

When someone visits your PHP webpage, your web server processes the PHP code. It then sees which parts it needs to show to visitors(content and pictures) and hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser.

PHP - What's it do?

It is also helpful to think of PHP in terms of what it can do for you. PHP will allow you to:

  • Reduce the time to create large websites.
  • Create a customized user experience for visitors based on information that you have gathered from them.
  • Open up thousands of possibilities for online tools. Check out PHP - HotScripts for examples of the great things that are possible with PHP.
  • Allow creation of shopping carts for e-commerce websites.

What You Should Know

Before starting this tutorial it is important that you have a basic understanding and experience in the following:

  • HTML - Know the syntax and especially HTML Forms.
  • Basic programming knowledge - This isn't required, but if you have any traditional programming experience it will make learning PHP a great deal easier.

Help your PC run faster

Some tips to help your PC run faster

Note: Before do the following steps you should Create a Restore Point by using System Restore

(Start > Programs > Accessories > System Tool > System Restore > Follow the instruction), tool provides by Windows XP.

Because if the problems exist after changing, Restore Point can keep the system as default.

1-Start >Run > msconfig

Tap WIN.INI unpick Mail

Tap BOOT.INI Timeout: 3 sec

Tap Services Unpick following services:

Background Intelligent Transfer Service

Distributed Link Tracking Client

Error Reporting Service

Indexing Service

Messenger

Machine Debug Manager

Network Location Awareness (NLA)

Portable Media Serial Number Service

Remote Registry (Only included with Windows XP Pro)

SSDP Discovery Service

Terminal Services

Windows Image Acquisition (WIA)

Wireless Zero Configuration (If you have a wireless network card, do not disable this one)

Windows Time

WebClient

Task Scheduler

If your PC installed ORACLE you may stop all services from Oracle except:

-OracleOraHome92TNListener

-OracleServiceDBA

Tap Startup Unpick the programs that you don’t need to use when machine after machine restart.

OK > Restart machine

2-Start >Run > gpedit.msc


Click User Configuration > Administrative Templates > Start Menu and Taskbar

Double-Click on Clear history of recently opened document on exit

Pick Enable

Ok

3-Start >Run > Sysdm.cpl

Tap Advance > On Performance click Settings > PickAdjust for best performance

Ok

4-Start >Run > Services.msc

Stop some services as

Background Intelligent Transfer Service

Distributed Link Tracking Client

Error Reporting Service

Indexing Service

Messenger

Machine Debug Manager

Network Location Awareness (NLA)

Portable Media Serial Number Service

Remote Registry (Only included with Windows XP Pro)

SSDP Discovery Service

Terminal Services

Windows Image Acquisition (WIA)

Wireless Zero Configuration (If you have a wireless network card, do not disable this one)

Windows Time

WebClient

Task Scheduler

If your PC installed ORACLE you may stop all services from Oracle except:

OracleOraHome92TNListener

OracleServiceDBA

File > Exit

5-Start >Run > regedit

Go to HKEY_CURRENT_USER\Control Panel\Desktop

Change value data for some value name

HungAppTimeout = 0

MenuShowDelay = 0

WaitToKillAppTimeout = 0

Fast Shutdown
HKEY_Local_Machine\System\CurrentControlSet\Control
Change value data for some value name
WaitToKillServiceTimeout=10(20000)
Fast Start up (Windows Screen)
HLM\System\CurentControlSet\Control\SessionManager\Memory Managerment\PrefetchParameters
-R-Panel=EnablePrefetch(REG_DWORD=3)to5
Free up memory
HLM\System\Sofware\Microsoft\windows\CurrenVersion
-R-Panel (Create new key=AlwayUnloadDLL=REG_SZ=0 to1)
Improve swapfile
Run > msconfig
-Tap system.ini > brow {386 enh} >New > Add (value=ConservativeSwapfileUsage=1)
-ok > restart

Disable Sound
Start>ControlPanel>Soun and Audio Device
Sound Tap > -Program Event (Exit Windows
-Sound (Non)
Fast loading "Startup Delay"
HKEY_LOACAL_MECHINE\SYSTEM\CurrentControlSet\Control\ContentIndex
now there find the Key Called
"Startup Delay"
Double Click On It
Now where its Base
Click Decimal
Now its Default Value Is 4800000
Change The Value To 40000 (100)