View
794
Download
1
Category
Preview:
DESCRIPTION
Intro to AFP session circa 2005
Citation preview
Introduction to AFPPower for your Internet Server
Copyright © 2005, F1 Technologies
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”
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
Leverage VFP skills on the Internet
Use your existing classes
Take advantage of VFP performance
Integrate with desktop apps
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
High performance and stability for mission critical environments
Support for clustering and high-availability web sites.
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
Based on VFP Multi-threaded
without requiring MTDLLs
Automatically compiles pages
Handles millions of hits per day
No Slow COM calls No need for ODBC,
ADO or OLEDB
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
No files stored in wwwRoot
Code is not visible to the client
Automatic session management
Support for HTTPS Integrates with
Windows security
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
VFP Syntax ASP like Object
Model Use any web
development tool, VFP or Notepad
Use VFP’s debugging capabilities
No need to start and stop IIS
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
Use your own or 3rd party VFP classes
Use VFP’s COM support
Anything goes with plug-ins
Copyright © 2005, F1 Technologies
Why AFP? VFP Language Stable Fast Secure Easy Extensible Hassle-Free
Easy installation and configuration
Works with any ISAPI compatible web server (IIS, Apache, etc.)
Copyright © 2005, F1 Technologies
Creating an AFP Site
Option 1 Create a folder in Inetpub\
wwwRoot Option 2
Create a folder anywhere Enable web sharing
That’s It!
Copyright © 2005, F1 Technologies
Creating Simple Pages
helloworld.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.afp
Copyright © 2005, F1 Technologies
Creating Simple Pageslistcustomers.afp Create a new file in notepad with the following text
<html><title>AFP Customer List</title><body><%USE (_SAMPLES + [DATA\CUSTOMER])SCAN? Company? [<br>]ENDSCAN%></body></html>
Save it as listcustomers.afp Navigate to it in your browser at
http://localhost/afpdemo/listcustomers.afp
Copyright © 2005, F1 Technologies
Creating Simple Pages
Additional Pages ListCustomersXML.AFP Menu.AFP ViewSource.AFP
ProLib Samples Sprechen Sie Deutsch?
Copyright © 2005, F1 Technologies
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)
Copyright © 2005, F1 Technologies
Separating Code From Layout Samples
CustomerList2.afp and CustomerList2.afp.code
Customer.afp and Customer.afp.code
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
AFP Demo Application Files AFPDemo.afpa AFPDemo.afpa.code CustomerTable.afp
Copyright © 2005, F1 Technologies
The AFP ControlCenter
Displays Status for each Instance Allows Configuration Modification Send Requests to AFP without
going through Web Server
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
AFP Versions AFP Professional $499 US Supports up to 3
host names Cluster support Multiple server
and unlimited server licenses available
AFP Express $99 US Supports only a
single host name No cluster
support No plug-ins Limited
debugging support
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
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
Copyright © 2005, F1 Technologies
Where to Get AFP
Download Demos and Documentation www.f1tech.com www.afpages.com
Purchase at www.f1tech.com
Copyright © 2005, F1 Technologies
Thank You
For more info www.f1tech.com www.afpages.com Email MikeFeltman@f1tech.com
Recommended