Free WebSchools.com

Google




Blog ForumsLive chat WebhostingLink TO UsSEO ToolsResources


HOME

PHP Introduction
Php Installation
PHP Basic Scripts
PHP variables
PHP operators
PHP Conditional statement
PHP functions
PHP Arrays
PHP Objects & classes
PHP with Forms
PHP Files
PHP With Database
PHP session
PHP cookies
PHP Regular Expressions
PHP Server Environment
PHP Graphics
PHP Advance

First Script





Lets start first script. To begin the script
  • Open the text editor like HTML documents.You can create with ant text editor like notepad on windowa,simple text and BBEdit on MacOS,or VI and Emacs on UNIX operating systems
  • write the PHP script
  • Save (test.php) PHP script on apache server(I have used Apache Server to run PHP script).Save here C:\Apache\htdocs. I have assumed Apache is on c directory.
  • open the browser and type http:\\freewebs.dot5hostingmysql.com\test.php
  • Thats it this is your first PHP page congrates!!!!!


Example 1

output
welcome to webschools

Example 2

output
Today's Date: Wednesday month date, year
example like this
Today's Date: Wednesday July 12, 2006