Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using VFP 7 class from web server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00771037
Message ID:
00771679
Vues:
12
>>>>I have a class (vcx file) whose methods return a
>>>>complete html page.
>>>>
>>>>I need to call this class methods from a web server so that
>>>>html code returned from class method call is displayed in user
>>>>browser as whole html page.
>>>>
>>>>How to use my class from a web server ?
>>>
>>>If this is only one process that you need to execute, then, I would suggest to only compile that class into a COM object and just invoke it from an ASP page. But, of course, if you want to build an entire application from that, I would definitely suggest to go with a Web framework such as West Wind Web Connection, ActiveVFP and other popular around here.
>>
>>Michael, thank you for reply.
>>
>>I'm using Apache 2 Web server which does not support ASP.
>>
>>Which is the simplest free way to call vfp class from Apache ?
>>
>>Foxisapi wrong call (localhost/foxisapi.dll )causes a page fault, so I cannot use foxisapi.
>
>Apache's ISAPI implementation is incomplete and doesn't work to spec so anything that's ISAPI based and requires persistence (as FoxISAPI does) will not work.
>
>Web Connection does work with it in file based mode. But COM components will not work, unless you can find some scripting engine for apache that specifically supports COM (I think ActivePHP or some of hte other 'Active' products from that same company (unrelated to ActiveVFP) might)...

Rick,

I ran Foxweb sample shipped with VFP 7 under Apache 2 without problems !

FoxISAPI.dll does not require persistence: Apache 2 can load it in each request without problems.
You can also cache it using apache configuration directive to improve perfomance.

So I cannot understand why you wrote that foxisapi does not work.

Maybe you are wroting about older apache (version 1). I havent tested
older versions. According to Apace docs, ISAPI support is
improved in version 2.
It does even support asynchronuous output which is not avaliable in WWC ISAPI implementation.

Customers have different operating systems. I need to install VFP class returning HTML pages to IE
in OSes from Windows 95 to Windows XP.

In my knowledge, some of those OSes do not have free IIS possiblility .
So I desided use single web server, Apache 2 for all cases.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform