Comparing PHP to ASP - Week 1 - The Basics
10 May 2010 - tips-tutorials
Welcome to the first part of our 5 part tutorial where we will compare PHP with Classic ASP.
The objective of these tutorials is to show you how to do some basic programming in PHP and compare it to how you would do it in Classic ASP using VB Script.
This five part tutorial will be split into five sections:
- Part 1 - The Basics
- Part 2 - String Functions
- Part 3 - Number Functions
- Part 4 - Looping
- Part 5 - Sessions and Cookies
For this first tutorial, we will go through some programming basics and compare how to use them in both PHP and Classic ASP.
Writing Code in PHP
Writing Code in Classic ASP
Writing Comments in PHP
Writing Comments in Classic ASP
Creating Variables in PHP
Creating Variables in Classic ASP
Note : Each line is ended with a ; in PHP. This is not needed in Classic ASP.
Write to a Browser in PHP
Write to a Browser in Classic ASP
Create an Array in PHP
Create an Array in Classic ASP
Note : Arrays in both languages are zero based, meaning the first item is referenced as 0, second as 1 etc..
Form Values using GET Method in PHP
Form Values using GET Method in Classic ASP
Form Values using POST Method in PHP
Form Values using POST Method in Classic ASP
Note : When collecting information from a form, client and server side validation should be used.
I hope you have enjoyed part 1 of our 5 part tutorial. Look out for part 2 on string functions coming soon.
Simon Lait
Website Developer, Candeo Media
Your Comments
Comment on this Post
There are no comments for this post yet.