You can install unlimited numbers of avfp on a computer.
You can install unlimited numbers of avfp on a computer.
OK, thanks Claude. It really is very simple then.
I was thinking I needed to have all my AVFP files in the one virtual folder home. But I just made another folder as you suggested and it works just fine.
Much appreciate.
<link rel="stylesheet" type="text/css" href="css/bluedream.css">
So I'm thinking maybe I need to change something else in the environment. Perhaps I need to change paths in the main.prg of the DEMO/PRG folder. Do I need to change the AVFPInit path for instance?Check you link. If you based this on the demo then your link looks like this:Many thanks. Now works fine. :)
<%=JUSTPATH(oProp.ScriptPath)+[/control.avfp]%>
You should have a link like this instead (note the dot before the backslash):
<%=JUSTPATH(oProp.ScriptPath)+[./control.avfp]%>
ActiveVFP Project - Foxpro on the World Wide Web
AVFP- best choice for using FoxPro with REST as a RESTful server. AVFP- best choice for using FoxPro with Android, iPad, iPhone.
ActiveVFP 6.03 Demo onGoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.
Easily installs on local IIS, GoDaddy, Arvixe, WinHost, Discount ASP.NET, SoftSys, many others. Get the cheapest web hosting rates ($5/month and below) using AVFP. Don't pay a premium just for using FoxPro!
FoxPro to Web, FoxPro to Mobile, FoxPro to Cloud: ActiveVFP(AVFP) is a completely free and open source project for creating web applications with the Visual Foxpro programming language and database (and other DBs like MSSQL or MySQL). It provides an easy-to-use framework in pure fox code for utilizing a multi-threaded vfp dll (vfp mtdll) called from ASP.NET. If you're considering web programming with FoxPro, using FoxPro in the cloud, or converting desktop VFP to web or mobile - using Android, iPhone, or iPad, this tool is for you.
Free and open source web software for the Foxpro community!!!
Faster than PHP on Windows, easier than C#!
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor
Really multi-threaded, really runs in the cloud, really open-source - accept no substitute! The goal of this project was to match or surpass the capabilities of commercial vfp web development products and to take vfp into the future by making it easy to interop with .NET for web applications. Along with this, ActiveVFP makes using cool web and mobile technologies like JavaScript, AJAX, JSON, jQuery, jQuery Mobile, AngularJS, Bootstrap, HTML5, CSS, PDF, Android, iPhone, iPad, RESTful web services (and more!) with FoxPro a breeze.
"...It can do everything the commercial vfp web products can and more like the ability to be easily hosted atcheap shared web hosts like
GoDaddy, XCOPY deployment, and true
multi-threading. I think of it as applying more modern technology to foxpro web development as compared to most of the older products that were developed 20 years ago and still use the original outdated techniques. However, AVFP is extremely easy
to use and develop in." -VFP Developer. No more paying for the privilege of using outdated technology!
High Availability, High Performance, works with Everything! Unlike commercial VFP web products, ActiveVFP concentrates on producing multi-threaded COM VFP server apps. While commercial VFP web products all have a multi-threaded ISAPI
client (as does ActiveVFP), only ActiveVFP focuses on creating multi-threaded VFP web server applications using a vfp mtdll. No simulated multi-threading (using multiple VFP EXE processes) here. What this means for you is much faster, efficient and scalable
vfp web applications along with far less maintenance headaches and worries about uptime. It also means you take full advantage of new Dual-Core, Quad-Core or multiple processors in new computers increasingly available now.
Your ideas and code contributions to this project are always welcome. Guidance for enhancements to ActiveVFP is on theIssue Tracker page.
Links
ActiveVFP 6.03 Demo on GoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.
ActiveVFP Documentation
ActiveVFP Video Overview
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor
Free Community Support
Consulting Support
Background Articles
Advanced VFP Servers by Calvin Hsia, Microsoft
VFP COM Debugging
From
Microsoft Visual Foxpro FAQ:
"Q: Can I use Visual FoxPro to build Web applications?
Visual FoxPro COM components can be used with Internet Information Services (IIS) to build high-powered Internet database applications. This is because Visual FoxPro components can be called from Active Server Pages (ASP). Visual FoxPro is compatible with ASP
but works even better in conjunction with the more modern ASP.NET. The components will retrieve and manipulate data, and will build some of the HTML returned to the user. "
Notable Quotes
"I was able to get a mobile site using AVFP up and
running in about 30 minutes." Andrew MacNeill, Akselsoft
On running ActiveVFP at
GoDaddy, "I got it working and I tell
you its sweet" LarryJ
"Everything you see is completely controlled by VFP code. Data controlled pictures, text, links,
and calculations are 100% VFP. I can change anything on the fly and it is multiuser right out of the box."
"...The dealership has a server guy who didn't know it was a VFP application. He was bad mouthing VFP for being old and slow. He was glad my new Super Fast application was built on .NET and used SQL server backend. I let him ramble on, then told him that it
was powered by VFP and used DBF tables. He told me "There is no way, a Foxpro application with that much data would be terribly slow." I just laughed and simply told him that any *Decent* Programmer can make VFP fly. I am still chuckling. He was so sure it
was .NET with SQL. He had to admit it was extemely fast." Don Higgins, Crew Chief Pro Software
"You should not have an issue with performance if you use multi-threaded
DLLs. I regularly test Visual FoxPro COM DLLs by simulating 40 clients
pounding the server for days at a time, generating as many as 3 million hits
per day (on a four-proc machine with 2Gb of RAM and striped RAID). If you're
site is generating more hits per day than that, I think other stuff is going
to break down before your COM servers. :-)" Mike Stewart, Microsoft
"I installed AVFP 5.5 experimentally this morning: xcopy the app and support libs to a
Windows 2003 server,create a new IIS virtual directory, map it to the new folder,
allow scripts and execute, I also created a new application pool out of habit...
then hit the site and the VFP app was serving pages. No DCOM, no registration,
nothing else to configure..."
"..Just for the record for people who haven't tried it, we're using an ActiveVFP MTDLL
in a production environment at the moment. That thing is fast- quick enough that it's
the server and network latency causing the biggest bottlenecks. We're talking a 15Mbps
connection burstable to 100Mbps so the app itself is doing fine." Jack Ryan
--
Donations
Donations are accepted.
Click here to donate to help support ActiveVFP and Open Source VFP projects.
Thank you for your support!
ActiveVFP Project - Foxpro on the World Wide Web
AVFP- best choice for using FoxPro with REST as a RESTful server. AVFP- best choice for using FoxPro with Android, iPad, iPhone.
ActiveVFP 6.03 Demo onGoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.
Easily installs on local IIS, GoDaddy, Arvixe, WinHost, Discount ASP.NET, SoftSys, many others. Get the cheapest web hosting rates ($5/month and below) using AVFP. Don't pay a premium just for using FoxPro!
FoxPro to Web, FoxPro to Mobile, FoxPro to Cloud: ActiveVFP(AVFP) is a completely free and open source project for creating web applications with the Visual Foxpro programming language and database (and other DBs like MSSQL or MySQL). It provides an easy-to-use framework in pure fox code for utilizing a multi-threaded vfp dll (vfp mtdll) called from ASP.NET. If you're considering web programming with FoxPro, using FoxPro in the cloud, or converting desktop VFP to web or mobile - using Android, iPhone, or iPad, this tool is for you.
Free and open source web software for the Foxpro community!!!
Faster than PHP on Windows, easier than C#!
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor
Really multi-threaded, really runs in the cloud, really open-source - accept no substitute! The goal of this project was to match or surpass the capabilities of commercial vfp web development products and to take vfp into the future by making it easy to interop with .NET for web applications. Along with this, ActiveVFP makes using cool web and mobile technologies like JavaScript, AJAX, JSON, jQuery, jQuery Mobile, AngularJS, Bootstrap, HTML5, CSS, PDF, Android, iPhone, iPad, RESTful web services (and more!) with FoxPro a breeze.
"...It can do everything the commercial vfp web products can and more like the ability to be easily hosted atcheap shared web hosts like
GoDaddy, XCOPY deployment, and true
multi-threading. I think of it as applying more modern technology to foxpro web development as compared to most of the older products that were developed 20 years ago and still use the original outdated techniques. However, AVFP is extremely easy
to use and develop in." -VFP Developer. No more paying for the privilege of using outdated technology!
High Availability, High Performance, works with Everything! Unlike commercial VFP web products, ActiveVFP concentrates on producing multi-threaded COM VFP server apps. While commercial VFP web products all have a multi-threaded ISAPI
client (as does ActiveVFP), only ActiveVFP focuses on creating multi-threaded VFP web server applications using a vfp mtdll. No simulated multi-threading (using multiple VFP EXE processes) here. What this means for you is much faster, efficient and scalable
vfp web applications along with far less maintenance headaches and worries about uptime. It also means you take full advantage of new Dual-Core, Quad-Core or multiple processors in new computers increasingly available now.
Your ideas and code contributions to this project are always welcome. Guidance for enhancements to ActiveVFP is on theIssue Tracker page.
Links
ActiveVFP 6.03 Demo on GoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.
ActiveVFP Documentation
ActiveVFP Video Overview
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor
Free Community Support
Consulting Support
Background Articles
Advanced VFP Servers by Calvin Hsia, Microsoft
VFP COM Debugging
From
Microsoft Visual Foxpro FAQ:
"Q: Can I use Visual FoxPro to build Web applications?
Visual FoxPro COM components can be used with Internet Information Services (IIS) to build high-powered Internet database applications. This is because Visual FoxPro components can be called from Active Server Pages (ASP). Visual FoxPro is compatible with ASP
but works even better in conjunction with the more modern ASP.NET. The components will retrieve and manipulate data, and will build some of the HTML returned to the user. "
Notable Quotes
"I was able to get a mobile site using AVFP up and
running in about 30 minutes." Andrew MacNeill, Akselsoft
On running ActiveVFP at
GoDaddy, "I got it working and I tell
you its sweet" LarryJ
"Everything you see is completely controlled by VFP code. Data controlled pictures, text, links,
and calculations are 100% VFP. I can change anything on the fly and it is multiuser right out of the box."
"...The dealership has a server guy who didn't know it was a VFP application. He was bad mouthing VFP for being old and slow. He was glad my new Super Fast application was built on .NET and used SQL server backend. I let him ramble on, then told him that it
was powered by VFP and used DBF tables. He told me "There is no way, a Foxpro application with that much data would be terribly slow." I just laughed and simply told him that any *Decent* Programmer can make VFP fly. I am still chuckling. He was so sure it
was .NET with SQL. He had to admit it was extemely fast." Don Higgins, Crew Chief Pro Software
"You should not have an issue with performance if you use multi-threaded
DLLs. I regularly test Visual FoxPro COM DLLs by simulating 40 clients
pounding the server for days at a time, generating as many as 3 million hits
per day (on a four-proc machine with 2Gb of RAM and striped RAID). If you're
site is generating more hits per day than that, I think other stuff is going
to break down before your COM servers. :-)" Mike Stewart, Microsoft
"I installed AVFP 5.5 experimentally this morning: xcopy the app and support libs to a
Windows 2003 server,create a new IIS virtual directory, map it to the new folder,
allow scripts and execute, I also created a new application pool out of habit...
then hit the site and the VFP app was serving pages. No DCOM, no registration,
nothing else to configure..."
"..Just for the record for people who haven't tried it, we're using an ActiveVFP MTDLL
in a production environment at the moment. That thing is fast- quick enough that it's
the server and network latency causing the biggest bottlenecks. We're talking a 15Mbps
connection burstable to 100Mbps so the app itself is doing fine." Jack Ryan
--
Donations
Donations are accepted.
Click here to donate to help support ActiveVFP and Open Source VFP projects.
Thank you for your support!
LOCAL oFSO,oFile
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.getFile(pcFileName)
oResponse.Clear()
oResponse.Buffer = .F.
oResponse.contentType = "application/pdf"
oResponse.AddHeader("Pragma","public")
oResponse.AddHeader("Cache-Control","no-cache")
oResponse.AddHeader("Accept-Ranges","bytes")
oResponse.AddHeader("Content-Type","application/pdf")
oResponse.AddHeader("Content-Length",ALLTRIM(STR(oFile.Size)))
oResponse.AddHeader("Content-Disposition", [attachment; filename=] + JUSTFNAME(pcFileName))
oResponse.AddHeader("Content-Transfer-Encoding","binary")
oResponse.BinaryWrite(FILETOSTR(pcFileName))
oResponse.End()
oResponse.Flush()
This causes the browser to download the file. The downloaded file has the same size of the original PDF file, but is not a valid PDF file. If I change "attachment" for "inline", then the browser tries to show the PDF unsuccessfully. oResponse.BinaryWrite(CREATEBINARY(FILETOSTR(pcFileName)))
Changing Content-Disposition from "attachment" to "inline" causes the PDF to be rendered instead of being downloaded.Hey Claude,
Housekeeping note. The link to AVFP documentation gets redirect to a GoDaddy site.
Cheers,
Dan b.
TEXT TO cUser NOSHOW
{
login: 'vespina',
fullname: 'Victor Espina',
pwd: 1234,
role: 25
}
ENDTEXT
oUser = json.Parse(cUser)
?oUser.fullName --> "Victor Espina"
cUser = json.Stringify(oUser)
?cUser --> {login: 'vespina', fullname: 'Victor Espina', pwd: '1234', role: 25}
cUsers = json.Stringify("qusers", .T.)
?cUsers --> { name: "qusers", rows: [{login: 'vespina', fullname: 'Victor Espina', pwd: '1234', role: 25}], schema: [{name: 'login', type: 'C', lon: 25, dec: 0},{name: 'fullname', type: 'C', lon: 50, dec: 0}, {name: 'pwd', type: 'C', lon: 50, dec: 0}, {name: 'role', type: 'N', lon: 4, dec: 0}] }
json.parseCursor(cusers, "qnewusers")
?reccount("qnewusers") --> 1
?qnewusers.login --> 'vespina'
cUsers = "[{login: 'vespina', role: 25}, {login: 'cfox', role: 1}, {login: 'jdoe', role: 10}]"
json.toCursor(cUsers, "qusers")
?reccount("qusers") --> 3
?qusers.login --> 'vespina'
If there is any feature you would like to be included in this new JSON parser, let me know on this thread and we would do our best to included it.