hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : CGI scripting--best language(s) to use?
Reply

Forum Jump

CGI scripting--best language(s) to use?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2000, 10:38 AM
nagromme nagromme is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Posts: 43
Question

I'm not sure if I'll bite the bullet and tackle this myself or not--I haven't done much directly with CGI scripting--but at least I want to know what I'm talking about when evaluating programmers to do this:

I need to write a relatively simple CGI script (which receives POST form input, does some math, and then writes or overwrites a text file on the server). I can't predict what servers it will need to run on--I want it to be as flexible as possible--for Unix servers, NT, Mac--all the most common possibilities--even if that means having 2 or more versions of the same program written. (I have been told, for instance, that PERL will typically run on Unix and Mac servers but not NT.)

So what language--or languages if need be--should my CGI script be in to have maximum compatibility with different server packages and OSes? And what restrictions would I stil need to be aware of before I over-promise that my script will run?

Thanks for any advice! I know enough about this to be dangerous--and I don't want to be dangerous.



Sponsored Links
  #2  
Old 09-22-2000, 10:52 AM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
I dun think anyone uses Mac Servers. Also Unix/Linux servers are the most common servers used on the net. Perl should not give you any problems on Unix, NT. I dunno abt Mac.

You should give PHP a too. Its easy and far more efficient then Perl.

Hope this helps!

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

  #3  
Old 09-23-2000, 06:31 AM
BC BC is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: 80,000 feet under the sur
Posts: 2,736
Both PHP and Perl should be sufficient for your CGI scripting. According to perl.com, there is no Perl or CGI distribution for Mac servers. Macs rank in the lowest 0.01% for web servers anyway. If you'd like to check out what are the most commonly used web servers, check out http://www.netcraft.com/survey/ - Apache (running on Linux/Unix) and IIS (Microsoft) dominate the market (80% in total).

If you'd like more info on CGI scripting, check out http://www.hotscripts.com where you can get CGI scripts (and there may be one already written, waiting for you), as well as get pointers to other useful CGI/Perl resources.

Sponsored Links
  #4  
Old 09-23-2000, 03:43 PM
nagromme nagromme is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Posts: 43
Thanks

That does help. I was obviously misinformed that Perl would not work on NT. And I have learned that both Apache and Perl will work on Mac, so that should be fine. (Given that the Army switched their Web servers to Mac, it's a segment I don't want to overlook.)

PHP is new to me--I assume that's something that must be custom-installed on the server? If so, I'll stick with Perl, since servers already seem to have that, I won't necessarily be able to install anything extra on the servers I'll be using.

hotscripts.com does look like it has bits and pieces I can learn from to do this myself. Thanks.

  #5  
Old 09-27-2000, 02:36 PM
nagromme nagromme is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Posts: 43
Question 2 other questions

First, I keep running into hosts who tell me Perl only runs on a UNIX server, not NT. I assume the truth is that certain NT servers can't run Perl. What is the real issue here? If I make a Perl script and want to to tell people how to know of their server can run it, what are the main factors?

Second, can you use Perl and Active Server Pages on the same server? How?--that's something else I have been told can't be done. (I know nothing about ASP, but I'm assuming they only work on NT servers--so maybe this is the same as my first question.) If not, that sounds like a big issue if I use Perl for my server-side application. I want to make my script as universal as possible, with as few versions of it as possible.

  #6  
Old 09-27-2000, 02:46 PM
JTY JTY is offline
Community Guide
 
Join Date: Jun 2000
Location: Washington, USA
Posts: 5,991
Well PERL will work on the platforms you mentioned. Tho most mac servers don't have perl installed, it can be done.

I imagine you could write it in C and it would be able to compile cleanly on all platforms if you use pure ANSI code.

Reply

Related posts from TheWhir.com
Title Type Date Posted
FCC Changing Broadband Rules Language to Reflect Concern Over Internet “Slow Lane” Web Hosting News 2014-05-12 16:05:36
Moboom Taps Responsive and Adaptive Design for New Website Builder and CMS Web Hosting News 2014-02-11 12:07:03
Communicating 21st-Century Hosting Terms to 20th-Century Clients Blog 2014-04-24 13:27:34
PHP Creator Rasmus Lerdorf Joins Jelastic as Advisor Web Hosting News 2013-07-05 13:06:00
FireHost Report Shows Cross-Site Scripting Attacks Up 160 Percent from Q3 Web Hosting News 2013-01-30 14:43:57


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?