Unformatted text preview:

PHP/ASPServer Side Processing (SSP)Slide 3Slide 4Server Side ProcessingHistory of PHPSlide 7History of ASPPHP FeaturesASP FeaturesCode DemosComparison of ASPComparison of PHPASP vs. PHPQuestions?ReferencesPHP/ASPPHP/ASPRobert Nelson & Will VanlueBA370November 4th, 2005Server Side Processing Server Side Processing (SSP)(SSP)•HTTP is a stateless protocol–How do we overcome this? With SSP•Server Side Processing Definition:–Coding that is placed in served files, and evaluated on the server while the files are being served to the client. They let you add dynamically generated content to an existing file (usually HTML pages). •With SSP, we are able to “remember” previous activity from internet clients•SSP has many other functions too.Server Side Processing Server Side Processing (SSP)(SSP)•Languages and technologies that allow for dynamic content in web pages•Call allow for the inclusion of time, connection, geographic, or browser –dependent information•Online shopping, personalized content, developing directories, and other non-static applications require SSPServer Side Processing Server Side Processing (SSP)(SSP)•Many technologies used to implement SSP–ASP, PHP, JSP, Coldfusion, ASP.NET, Java, Perl, Python, C#, etc. •Why PHP/ASP?–Very widely used languages–Both have relatively low learning curves–Large support communities•http://www.php.net•http://msdn.microsoft.comServer Side ProcessingServer Side Processing1Client ServerOther Requests (servers, database apps, etc.)1. Client requests a page from the server2. HTTP Server passes PHP/ASP page to interpreter application.3. Interpreter parses code and returns it to HTTP server as HTML.4. Page is delivered back to client as HTML.4Interpreter (PHP, ASP)23History of PHPHistory of PHP•PHP/FI (1995)–“Personal Home Page/Forms Interpreter”–Created by Rasmus Lerdorf–Sample set of Perl scripts to track online access to documents–Relatively inconsistent syntax–Lerdorf chose to publicly release the source code•PHP/FI 2.0 (1997)–“Cult” like following of thousands of users–Approximately 50,000 pages (1% of the internet) report usage–Spent most of it’s life in beta•PHP 3.0 (1998)–Recursive Acronym: PHP: Hypertext Preprocessor–First version to resemble modern PHP–Created by Andi Gutmans and Zeev Suraski with help from Lerdorf–Name was changed to make it sound more useful for commercial usage–Object oriented and very consistent syntax–Tens of thousands of users–Hundreds of thousands of pages (10% of the internet) report usageHistory of PHPHistory of PHP•PHP 4.0 (1999)–New “Zend Engine” at the core•Named after Zeev Suraski and Andi Gutmans•Handled third party databases much more efficiently–Improved portability with a wider variety of server compatibility–Provides more secure transfers of information–Hundreds of thousands of users–Several millions of pages (20% of the internet) report usage•PHP 5.0 (2004)–Had several pre-releases–Zend Engine 2.0–Dozens of new featuresHistory of ASPHistory of ASP•“Classic” ASP–ASP 1.0 (1996)•Supports interpreted VBScript and JScript–ASP 2.0 (1997)–ASP 3.0 (2000)•ASP.NET–ASP.NET 1.0 (2002)•Can replace HTML scripting with full support for .NET languages•In-page scripts are still supported•VB.NET and C# classes can generate pages–ASP.NET 2.0 (2005)•Scheduled release of November 7th•Easier to use, “drag-and-drop”, interfacePHP FeaturesPHP Features•Source code is not sent to the browser•Code is bracketed by “<?” and “?>”•Can be inserted into HTML code or can be a stand alone application•File extension needs to be .php, .php3, .php4, etc.•Server must have PHP interpreter installed•Supports database control•Source code is OPENASP FeaturesASP Features•Source code is not sent to the browser•Code is bracketed by “<%” and “%>”•Can be inserted into HTML code or can be a stand alone application•Supports a wide variety of .NET languages•Server must have ASP.NET installed•Supports database control, but may need third party drivers •Source code is CLOSEDCode DemosCode Demos•Demo 1: Simple Password GeneratorPHP Code | ASP Code | Output•Demo 2: Sessions & CookiesPHP Code | ASP Code | Output •Demo 3: Database ConnectivityPHP Code | ASP Code | OutputComparison of ASPComparison of ASP•Pros–Professional tech support–Versions are documented at msdn.microsoft.com–Run on many company intranets–Has a familiar Microsoft environment –Widely available•Cons–Only practical to run on a Windows server–Support can be expensiveComparison of PHPComparison of PHP•Pros–Open source–Freely available–Very portable–Active user community–Uses relatively little processor power•Cons–More CPU intensive on a large scale–Extensibility is relatively limitedASP vs. PHPASP vs. PHPASP PHPLanguagesVBScript, JavaScript, C#, etc.PHPPlatformsWindows (others can be used, but third party software is needed)Any platform for which the source code is availablePortabilityPoor ExcellentScalabilityGood PoorSource CodeClosed OpenLearning CurveLow


View Full Document

OSU BA 370 - LECTURE NOTES

Download LECTURE NOTES
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view LECTURE NOTES and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view LECTURE NOTES 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?