Quantcast
Channel: Home of ActiveVFP - Foxpro on the World Wide Web
Viewing all 1109 articles
Browse latest View live

New Post: Managing Files for Multiple Websites in Desktop AVFP

$
0
0
Just create a separate folder, application for each instance of activevfp which the default installation already does. Each one should automatically be separate unless you manually registered the activevfp.dll (in which case it's shared system wide) . If you use the default side by side activevfp dll then they are really running separately in their own folders.

You can install unlimited numbers of avfp on a computer.

New Post: Managing Files for Multiple Websites in Desktop AVFP

$
0
0

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.

New Post: Managing Files for Multiple Websites in Desktop AVFP

$
0
0
OK, I ran into a snag. I moved all the subfolders of my main AVFP folder into a separate folder called DEMO. And I moved a few of my newly-created demo .avfp extension files into that DEMO folder.

The new file is seen in the DEMO folder and loads ok, but it's not seeing my CSS file in the DEMO/CSS folder I created.

This CSS reference was working fine when I had my new myfile.avfp in the original root folder, but when I moved this file to the DEMO folder, it lost the reference. The code is as follows and it's inside the <head></head> section.
<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?

Thanks.

New Post: Problem with sending form

$
0
0
Hi friends!

I've a new problem with AVFP. I configured my app on my remote server and with standard url (server_hostname/app_directory/default.avfp) works fine. Now, i added a domain to my server and i've set a new IIS pool.

Now, my app is reacheable from my domain but when i click on any submit button of form, i get an error in destination url.
"JustPath(oProp.ScriptPath)" don't works in this case. I see, in the url address bar, only a partial path.

For example:

Original url that work: http://mydomain.com/control.avfp?code=12
Actual url: http:///control.avfp?code=12

This problem is only with domain, with standard address there isn't problem.

I need to use the domain name instead of "JustPath(oProp.ScriptPath)" ?

New Post: Problem with sending form

$
0
0
Check you link. If you based this on the demo then your link looks like this:
<%=JUSTPATH(oProp.ScriptPath)+[/control.avfp]%>

You should have a link like this instead (note the dot before the backslash):
<%=JUSTPATH(oProp.ScriptPath)+[./control.avfp]%>

New Post: Problem with sending form

$
0
0
apaustria wrote:
Check you link. If you based this on the demo then your link looks like this:
<%=JUSTPATH(oProp.ScriptPath)+[/control.avfp]%>

You should have a link like this instead (note the dot before the backslash):
<%=JUSTPATH(oProp.ScriptPath)+[./control.avfp]%>
Many thanks. Now works fine. :)

New Post: Handler "AVFPHandler" has a bad module "ManagedPipelineHandler" in its module list

$
0
0
I configure my IIS but when i run a sample avfp this error appeared

Created Unassigned: HTTP Error 500.21 - Internal Server Error Handler "AVFPRESTHandler" has a bad module "ManagedPipelineHandler" in its module list [43098]

$
0
0
could not run sample avfp files...

New Post: Handler "AVFPHandler" has a bad module "ManagedPipelineHandler" in its module list

New Post: Handler "AVFPHandler" has a bad module "ManagedPipelineHandler" in its module list

$
0
0
i already installed asp.net/asp component ...stop IIS and start again....still the same error...

Updated Wiki: Home

$
0
0

ActiveVFP Project - Foxpro on the World Wide Web

PHP or MVC style, you choose.  VFP pages or VFP controller - just add Fox code!!

Arvixe!

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, GoDaddyArvixe, WinHost, Discount ASP.NETSoftSys, 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.

Fastest and most scalable VFP web solution, yet also the easiest to setup and program!

"...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.

Making it easy to use Foxpro on the web!!

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.

Donate!


Thank you for your support!

Updated Wiki: Home

$
0
0

ActiveVFP Project - Foxpro on the World Wide Web

PHP or MVC style, you choose.  VFP pages or VFP controller - just add Fox code!!

Arvixe!

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, GoDaddyArvixe, WinHost, Discount ASP.NETSoftSys, 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.

Fastest and most scalable VFP web solution, yet also the easiest to setup and program!

"...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.

Making it easy to use Foxpro on the web!!

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.

Donate!


Thank you for your support!

New Post: Handler "AVFPHandler" has a bad module "ManagedPipelineHandler" in its module list

$
0
0
This is the typical config for IIS although in Windows 7 I didn't need to check off ASP.
Image

New Post: Returning PDF response

$
0
0
I have a PDF file I want to return as the result of a REST call in AVFP. I know I could do oResponse.Redirect("http://server/folder/file.pdf") but I don't want to return a link to the file but the actual PDF output directly to the browser.

My current code looks like this:
  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.

I also tried using oResponse.transmitFile(). In this case, the browser fails with a "time out" error. Also tried with oResponse.Write() and oResponse.OuputStream.Write(), but got the same corrupted download I get with BinaryWrite.

Any ideas?


Victor Espina

New Post: Returning PDF response

$
0
0
The problem is caused because, somehow, the data received at the browser is arriving as double-byte stream. If I request the PDF file directly, I get a single-byte stream. I can't find what is causing this. :(

Victor

New Post: Returning PDF response

$
0
0
Solved!!

All I needed to do was to convert file data to binary:
oResponse.BinaryWrite(CREATEBINARY(FILETOSTR(pcFileName)))
Changing Content-Disposition from "attachment" to "inline" causes the PDF to be rendered instead of being downloaded.


Victor Espina

New Post: Link to AVFP Documentation Bad

$
0
0

Hey Claude,

Housekeeping note. The link to AVFP documentation gets redirect to a GoDaddy site.

Cheers,

Dan b.

New Post: Link to AVFP Documentation Bad

$
0
0
transitioning to Arvixe for web hosting so some of those old sites will be down for a little while

New Post: Working on a new version for a native JSON parser for AVFP

$
0
0
Me and a friend are working in a new VFP JSON parser for AVFP. These are some examples of what this new parser can do:
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.

Victor Espina

New Post: Working on a new version for a native JSON parser for AVFP

$
0
0
The speed, from what I've seen so far, is absolutely fantastic. I'm looking forward to playing with this!
Viewing all 1109 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>