Thursday, May 18, 2006

Hi Brad,

> In versions of 4D below 2004, you need to have "4dcgi" in the URL to
> invoke 4D's web server (or maybe just to proess forms). You don't
> necessarily have to have a 4dcgi folder, but if you don't your "On web
> Connection" method (I may have the name wrong, as I'm an ITK guy) will
> have to intercept the request and determine the file path where your web
> (a4d) files are.

Actually, you *don't* need any directory or special processing in "On web
connection".

You merely must include this bit of decoration so that 4D 2003 and under
will include the form variables. Otherwise it strips them out.

So you can have the following set up on your web server:

Web (folder)

default.a4d (file with FORM ACTION to /4dcgi/default.a4p)

default.a4p (file that's executed from above FORM ACTION in the same folder)

You don't need any other "4dcgi" folder, nor do anything special in "On web
connection". It all just works magically.

(I think this was required by 4D as a way of "advertising"; anybody looking
at the source of a page would see this, and know that a 4D web server was
involved. There was a lot of hue and cry about it, with David Adams leading
the charge, until they finally retired it in 4D 2004.)

Cheers!

Michael Larue

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to