際際滷

際際滷Share a Scribd company logo
Introduction to AFP
Power 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 VFPs
   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 VFPs 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

   Thats It!
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.af
  p
Creating Simple Pages
listcustomers.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
   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
Ad

Recommended

Html and visual fox pro
Html and visual fox pro
Mike Feltman
Where do you want to go today 2007
Where do you want to go today 2007
Mike Feltman
Where do you want to go today
Where do you want to go today
Mike Feltman
Html for desktop applications
Html for desktop applications
Mike Feltman
N tier web applications
N tier web applications
Mike Feltman
Feltman js4 vfp
Feltman js4 vfp
Mike Feltman
Web 101
Web 101
Mike Feltman
Java script for foxpro developers
Java script for foxpro developers
Mike Feltman
Error handling in visual fox pro 9
Error handling in visual fox pro 9
Mike Feltman
CakePHP 2.0 - PHP Matsuri 2011
CakePHP 2.0 - PHP Matsuri 2011
Graham Weldon
PHP Interview Questions
PHP Interview Questions
MaryamAnwar10
PHP LICTURES ..........
PHP LICTURES ..........
Rashid Ahmad
A Brief Intro to Adobe Flex
A Brief Intro to Adobe Flex
Chad Udell
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with Flex
Chris Charlton
Language Barriers
Language Barriers
Cristian Vat
Adobe flex an overview
Adobe flex an overview
Subin Sugunan
REST Servers in Delphi XE Using DataSnap
REST Servers in Delphi XE Using DataSnap
Embarcadero Technologies
State of play for Joomla - Nov 2014
State of play for Joomla - Nov 2014
Tim Plummer
Top 10 php frameworks in 2021
Top 10 php frameworks in 2021
MaryamAnwar10
PHP
PHP
Jawhar Ali
Simplify your professional web development with symfony
Simplify your professional web development with symfony
Francois Zaninotto
Advantages of Choosing PHP Web Development
Advantages of Choosing PHP Web Development
Grey Matter India Technologies PVT LTD
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Teerasej Jiraphatchandej
PHP .ppt
PHP .ppt
dinesh rana
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
Web performance optimization
Web performance optimization
Kaliop-slide
ILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office Integration
John Head
Unit 1-introduction to scripts
Unit 1-introduction to scripts
sana mateen
Asp.net basic
Asp.net basic
Neelesh Shukla
Asp.net.
Asp.net.
Naveen Sihag

More Related Content

What's hot (20)

Error handling in visual fox pro 9
Error handling in visual fox pro 9
Mike Feltman
CakePHP 2.0 - PHP Matsuri 2011
CakePHP 2.0 - PHP Matsuri 2011
Graham Weldon
PHP Interview Questions
PHP Interview Questions
MaryamAnwar10
PHP LICTURES ..........
PHP LICTURES ..........
Rashid Ahmad
A Brief Intro to Adobe Flex
A Brief Intro to Adobe Flex
Chad Udell
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with Flex
Chris Charlton
Language Barriers
Language Barriers
Cristian Vat
Adobe flex an overview
Adobe flex an overview
Subin Sugunan
REST Servers in Delphi XE Using DataSnap
REST Servers in Delphi XE Using DataSnap
Embarcadero Technologies
State of play for Joomla - Nov 2014
State of play for Joomla - Nov 2014
Tim Plummer
Top 10 php frameworks in 2021
Top 10 php frameworks in 2021
MaryamAnwar10
PHP
PHP
Jawhar Ali
Simplify your professional web development with symfony
Simplify your professional web development with symfony
Francois Zaninotto
Advantages of Choosing PHP Web Development
Advantages of Choosing PHP Web Development
Grey Matter India Technologies PVT LTD
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Teerasej Jiraphatchandej
PHP .ppt
PHP .ppt
dinesh rana
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
Web performance optimization
Web performance optimization
Kaliop-slide
ILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office Integration
John Head
Unit 1-introduction to scripts
Unit 1-introduction to scripts
sana mateen
Error handling in visual fox pro 9
Error handling in visual fox pro 9
Mike Feltman
CakePHP 2.0 - PHP Matsuri 2011
CakePHP 2.0 - PHP Matsuri 2011
Graham Weldon
PHP Interview Questions
PHP Interview Questions
MaryamAnwar10
PHP LICTURES ..........
PHP LICTURES ..........
Rashid Ahmad
A Brief Intro to Adobe Flex
A Brief Intro to Adobe Flex
Chad Udell
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with Flex
Chris Charlton
Language Barriers
Language Barriers
Cristian Vat
Adobe flex an overview
Adobe flex an overview
Subin Sugunan
REST Servers in Delphi XE Using DataSnap
REST Servers in Delphi XE Using DataSnap
Embarcadero Technologies
State of play for Joomla - Nov 2014
State of play for Joomla - Nov 2014
Tim Plummer
Top 10 php frameworks in 2021
Top 10 php frameworks in 2021
MaryamAnwar10
Simplify your professional web development with symfony
Simplify your professional web development with symfony
Francois Zaninotto
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Current state of Adobe PhoneGap & Cordova (yes, iOS 8 too)
Teerasej Jiraphatchandej
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts
Web performance optimization
Web performance optimization
Kaliop-slide
ILUG 2007 - Notes and Office Integration
ILUG 2007 - Notes and Office Integration
John Head
Unit 1-introduction to scripts
Unit 1-introduction to scripts
sana mateen

Similar to Introduction to afp (20)

Asp.net basic
Asp.net basic
Neelesh Shukla
Asp.net.
Asp.net.
Naveen Sihag
Aspnet
Aspnet
nadim_Godrej
ASP.NET OVERVIEW
ASP.NET OVERVIEW
Rishi Kothari
Beginners introduction to asp.net
Beginners introduction to asp.net
Naveen Kumar Veligeti
Rutgers - Active Server Pages
Rutgers - Active Server Pages
Michael Dobe, Ph.D.
Intro To Asp
Intro To Asp
Adil Jafri
Developing an aspnet web application
Developing an aspnet web application
Rahul Bansal
01 asp.net session01
01 asp.net session01
Mani Chaubey
.Net overviewrajnish
.Net overviewrajnish
Rajnish Kalla
Letsleads dot net-syllabus
Letsleads dot net-syllabus
letsleads
01 asp.net session01
01 asp.net session01
Vivek Singh Chandel
Asp.net
Asp.net
Rizwan Ahmed
Asp.net architecture
Asp.net architecture
Iblesoft
Web techh
Web techh
SangeethaSasi1
Web tech
Web tech
SangeethaSasi1
Web tech
Web tech
SangeethaSasi1
Web tech
Web tech
SangeethaSasi1
ASP.NET Presentation
ASP.NET Presentation
Rasel Khan
Opr089 xx
Opr089 xx
Tobie Tlm
Ad

More from Mike Feltman (6)

Drop acid
Drop acid
Mike Feltman
Feltman collections
Feltman collections
Mike Feltman
Whats new in x case 8
Whats new in x case 8
Mike Feltman
VFP & Ajax
VFP & Ajax
Mike Feltman
Docking from a z in visual fox pro 9
Docking from a z in visual fox pro 9
Mike Feltman
Client server
Client server
Mike Feltman
Feltman collections
Feltman collections
Mike Feltman
Whats new in x case 8
Whats new in x case 8
Mike Feltman
Docking from a z in visual fox pro 9
Docking from a z in visual fox pro 9
Mike Feltman
Ad

Introduction to afp

  • 1. Introduction to AFP Power 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 VFPs 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 VFPs 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 Thats It!
  • 13. 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.af p
  • 14. Creating Simple Pages listcustomers.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 Afpwiki.de Open Source AFP based WIKI AFPHOSTING.COM (German) site dedicated to AFP Hosting Prolib.de Manufacturers of Active FoxPro Pages
  • 25. Where to Get AFP Download Demos and Documentation www.f1tech.com www.afpages.com Purchase at www.f1tech.com
  • 26. Thank You For more info www.f1tech.com www.afpages.com Email MikeFeltman@f1tech.com