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/helloworld.af 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
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
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 Afpwiki.de Open Source AFP based WIKI AFPHOSTING.COM (German) site dedicated to AFP Hosting Prolib.de Manufacturers of Active FoxPro Pages
Where to Get AFP Download Demos and Documentation www.f1tech.com www.afpages.com Purchase at www.f1tech.com
Thank You For more info www.f1tech.com www.afpages.com Email MikeFeltman@f1tech.com
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.