Re: CGI on OS X not running
Re: CGI on OS X not running
- Subject: Re: CGI on OS X not running
- From: Timothy Bates <email@hidden>
- Date: Sat, 07 Sep 2002 21:59:29 +1000
>
I'm trying to set up Webstar on an OS X server to run my own AS
>
CGI scripts. I have the OS X server and Webstar installed and set
>
up correctly (as far as I can tell). I can run other CGIs with no
>
problems.
Why not use Apache and php? AppleScript cgi will give you nothing but grief:
when I last looked, they were not multi-threaded:multiple page hits block
until the first cgi clears. They are not re-entrant, so one cgi can stuff up
the processing of another. They are dog slow (like 100 ties slower than
php), and have no native concept of hash lists, which is the absolute core
of handling forms on the net.
AS has no good handles into mainstream databases (apart from Valentina,
which is not main stream), so you are cutting yourself off from 90% of the
power of cgi solutions, which is database driven web sites using MySQL or
equivalent.
Finally, unlike php, AS is not in-line (mixed inline with your html), so
writing and maintaining the html elements is a nightmare of back slashes and
cruft, and you can't leverage GUI creation tools like dreamweaver.
Just get a decent book on MySQL-php (I used a very approachable book by a
guy a named Medinets, but I am sure any of the 20 books on php will be
fine).
I note that their are exactly zero books devoted to using AS as a cgi tool,
and no current web pages on this. Compare that to AS and php (both of which
are already installed on your Mac under OS X) with something like 500,000
websites and loads of help ... The decision is easy.
Tim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.