homepage Welcome to WebmasterWorld Guest from 54.211.97.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
CGI question of the week
Which language to use?
snsetd

5+ Year Member



 
Msg#: 3640802 posted 12:25 am on May 3, 2008 (gmt 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)

 

phranque

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



 
Msg#: 3640802 posted 5:47 am on May 3, 2008 (gmt 0)

i would use the language i knew best unless i knew well enough another language that did a better job.

jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3640802 posted 4:43 pm on May 4, 2008 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved