Introduction to afp
Upcoming SlideShare
Loading in...5

Introduction to afp



Intro to AFP session circa 2005

Intro to AFP session circa 2005



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Introduction to afp Introduction to afp Presentation Transcript

  • Introduction to AFPPower for your Internet Server
  • Who Am I Mike Feltman President F1 Technologies since 1990 Co-designer & author of Visual FoxExpress framework North American AFP Distributor “.NET Project Rescue Specialist”
  • Agenda What is AFP? Why AFP? Creating an AFP Site Getting Started with Simple Pages Separating code from layout AFP Application Architecture The AFP ControlCenter Debugging AFP Versions Where and how to get AFP
  • What is AFP? Active FoxPro Pages ISAPI Extension ASP work alike using VFP code instead of VB Script or Java Script Optional ASP.NET like separation of code from layout Complete OOP support
  • Why AFP? VFP Language  Leverage VFP Stable skills on the Internet Fast Secure  Use your existing classes Easy  Take advantage of Extensible VFP performance Hassle-Free  Integrate with desktop apps
  • Why AFP? VFP Language  High performance Stable and stability for mission critical Fast environments Secure  Support for Easy clustering and Extensible high-availability Hassle-Free web sites.
  • Why AFP? VFP Language  Based on VFP Stable  Multi-threaded Fast without requiring Secure MTDLLs Easy  Automatically compiles pages Extensible  Handles millions of Hassle-Free hits per day  No Slow COM calls  No need for ODBC, ADO or OLEDB
  • Why AFP? VFP Language  No files stored in Stable wwwRoot Fast  Code is not visible Secure to the client Easy  Automatic session management Extensible  Support for HTTPS Hassle-Free  Integrates with Windows security
  • Why AFP? VFP Language  VFP Syntax Stable  ASP like Object Fast Model Secure  Use any web Easy development tool, VFP or Notepad Extensible  Use VFP’s Hassle-Free debugging capabilities  No need to start and stop IIS
  • Why AFP? VFP Language  Use your own or 3rd Stable party VFP classes Fast  Use VFP’s COM Secure support Easy  Anything goes with plug-ins Extensible Hassle-Free
  • Why AFP? VFP Language  Easy installation Stable and configuration Fast  Works with any Secure ISAPI compatible web server (IIS, Easy Apache, etc.) Extensible Hassle-Free
  • Creating an AFP Site Option 1  Create a folder in InetpubwwwRoot Option 2  Create a folder anywhere  Enable web sharing That’s It!
  • Creating Simple Pageshelloworld.afp Create a new file in notepad with the following text <html> <body> <% ? "Hello World" %> </body> </html> Save it as helloworld.afp Navigate to it in your browser at http://localhost/afpdemo/ p
  • Creating Simple Pageslistcustomers.afp Create a new file in notepad with the following text <html> <title>AFP Customer List</title> <body> <% USE (_SAMPLES + [DATACUSTOMER]) SCAN ? Company ? [<br>] ENDSCAN %> </body> </html> Save it as listcustomers.afp Navigate to it in your browser at http://localhost/afpdemo/listcustomers.afp
  • Creating Simple Pages Additional Pages  ListCustomersXML.AFP  Menu.AFP  ViewSource.AFP ProLib Samples  Sprechen Sie Deutsch?
  • Code Separation Programming 101 – Separate Form from Functionality Not well supported in classic .ASP Supported in ASP.NET .Code file with the same name as the .AFP file can contain VFP code for the page. (test.afp code file = test.afp.code)
  • Separating Code From Layout Samples  CustomerList2.afp and CustomerList2.afp.code  Customer.afp and Customer.afp.code
  • AFP Application Architecture All of the .AFP files in a directory Requires an Application Id in .AFPA file <application ID=“???"/> Files in directories other than the application root can be made part of an application Common Code can be stored in .AFPA.Code File  Functions  Class Definitions  Events
  • AFP Demo Application Files AFPDemo.afpa AFPDemo.afpa.code CustomerTable.afp
  • The AFP ControlCenter Displays Status for each Instance Allows Configuration Modification Send Requests to AFP without going through Web Server
  • Debugging DEBUG, SUSPEND, SET STEP ON & ASSERT are supported DO AFP3Debug.prg Use regular VFP debugger Can also use ALF+F5 to open the debugger Remember to exit “debug mode” with SHIFT+F5
  • AFP Versions AFP Professional  AFP Express $499 US  $99 US Supports up to 3  Supports only a host names single host name Cluster support  No cluster support Multiple server and  No plug-ins unlimited server  Limited debugging licenses available support
  • Review Key Features:  VFP Language  Stable  Fast  Secure  Easy  Extensible  Scalable  Complete debug support Programming models:  Script within HTML pages  .Code files associated with pages  VCX, PRG classes  Application level code in .AFPA.Code Files
  • AFP Sites of Interest AFPFAQ.DE Active FoxPro Pages FAQ – multi-lingual VFUG.ORG Large, popular all AFP site Open Source AFP based WIKI AFPHOSTING.COM (German) site dedicated to AFP Hosting Manufacturers of Active FoxPro Pages
  • Where to Get AFP Download Demos and Documentation   Purchase at
  • Thank You For more info Email