Your SlideShare is downloading. ×
Introduction to afp
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Introduction to afp


Published on

Intro to AFP session circa 2005

Intro to AFP session circa 2005

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. Introduction to AFPPower for your Internet Server
  • 2. 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”
  • 3. 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
  • 4. 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
  • 5. 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
  • 6. 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.
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. 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
  • 12. Creating an AFP Site Option 1  Create a folder in InetpubwwwRoot Option 2  Create a folder anywhere  Enable web sharing That’s It!
  • 13. 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
  • 14. 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
  • 15. Creating Simple Pages Additional Pages  ListCustomersXML.AFP  Menu.AFP  ViewSource.AFP ProLib Samples  Sprechen Sie Deutsch?
  • 16. 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)
  • 17. Separating Code From Layout Samples  CustomerList2.afp and CustomerList2.afp.code  Customer.afp and Customer.afp.code
  • 18. 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
  • 19. AFP Demo Application Files AFPDemo.afpa AFPDemo.afpa.code CustomerTable.afp
  • 20. The AFP ControlCenter Displays Status for each Instance Allows Configuration Modification Send Requests to AFP without going through Web Server
  • 21. 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
  • 22. 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
  • 23. 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
  • 24. 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
  • 25. Where to Get AFP Download Demos and Documentation   Purchase at
  • 26. Thank You For more info Email