Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

CGI question of the week

Which language to use?

12:25 am on May 3, 2008 (gmt 0)

New User

5+ Year Member

joined:Apr 6, 2008
posts: 20
votes: 0

CGI (the common gateway interfaces) allows a server-based script to get access to form fields submitted by a user. Such scripts can be written in Perl, PHP, VBscript as well as other scripting languages.

Assume you must create a script to "echo" (display) back to a Web page the values a user has entered into your form. Which language would you select and why?

(this is a question in a design class I am taking)

5:47 am on May 3, 2008 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 8

i would use the language i knew best unless i knew well enough another language that did a better job.
4:43 pm on May 4, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 26, 2005
votes: 0

Ditto Phranque's question.

dunno if this is a "trick question", but given the trivial nature of the problem given, any language would be suitable.

As for performance, the overhead of using CGI (who uses CGI any more?) far outstrips any interpreter speed issue. Anybody citing that they will use "x" because "x" is faster gets a big red X on their answer...

Use whatever language is (a) available and already installed on your host and (b) you are familiar with.

The why - the problem is trivial, performance doesn't matter - language elegance doesn't matter (because it's probably a one-line solution in most - and if it isn't, pick another one...) - the right answer is to use the tool that will allow you to get the job done most quickly.