1.6Sport
Member
Registered: 2nd Nov 04
Location: Fife
User status: Offline
|
Can someone tell me some advantages of using Javascript over CGI.
Why is Javascript better than CGI? Cheers
|
Doug
Member
Registered: 8th Oct 03
User status: Offline
|
javascript is client side and CGI is server side.
|
1.6Sport
Member
Registered: 2nd Nov 04
Location: Fife
User status: Offline
|
Would i be right in saying Javascript is fairly easy to code where as CGI is technically not a language, you have to use Perl or C or C++ to program in CGI
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
I wouldn't say Javascript is particularly easy.
What are you trying to achieve?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
1999 want their exam question back.
CGI isn't a language, it's a technique. You have to use a language like Perl (old), C or C++ (compiled and generally only used where good utilisation of your hosting resources is required) or PHP or ASP which are both modern and in use these days.
PHP is generally hosted on Unix servers although Windows can do it, ASP is generally Microsoft only and although there is Unix server software that will dispense ASP it's not usually not such a robust solution.
PHP integrates well with MySQL database, both of which are open source which is why you'll generally see it on forum and non-profit type of web sites as well as larger apps which are also open source. CS is PHP/MySQL.
ASP integrates well with MS SQL Server and does trick things like NT Domain authentication and things of that nature. The latter is usually why you'll find it on company intranets.
Let me know my grade.
[Edited on 28-05-2008 by Ian]
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
I'll give you a B+
|
liamC
Member
Registered: 28th Feb 04
User status: Offline
|
quote: Originally posted by Ian
1999 want their exam question back.
CGI isn't a language, it's a technique. You have to use a language like Perl (old), C or C++ (compiled and generally only used where good utilisation of your hosting resources is required) or PHP or ASP which are both modern and in use these days.
PHP is generally hosted on Unix servers although Windows can do it, ASP is generally Microsoft only and although there is Unix server software that will dispense ASP it's not usually not such a robust solution.
PHP integrates well with MySQL database, both of which are open source which is why you'll generally see it on forum and non-profit type of web sites as well as larger apps which are also open source. CS is PHP/MySQL.
ASP integrates well with MS SQL Server and does trick things like NT Domain authentication and things of that nature. The latter is usually why you'll find it on company intranets.
Let me know my grade.
[Edited on 28-05-2008 by Ian]
G (for Geek )
[Edited on 29-05-2008 by liamC]
|
xa0s
Banned
Registered: 4th Mar 08
Location: Dartford, Kent Car: Turbo'd Fabia vRS
User status: Offline
|
As Ian said -- two completely different things! It's like asking whether you should use sausages or eggs!
|