LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2005, 07:32 PM   #1
coolguy_iiit
Member
 
Registered: Aug 2004
Posts: 51

Rep: Reputation: 15
Which one is best? CGI : PHP : ASP


Hi,
can someone tell me which one is best among CGI,PHP and ASP ?

waiting for ur reply!!
cooooooooooooool
 
Old 04-28-2005, 07:47 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
It will depend on what you are doing. They all have their own benifits. That answer sucks, so I'll say my favorite or the one I use the most is PHP
 
Old 04-29-2005, 12:19 AM   #3
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
asp has some disadvantages over cgi and php. However, php is new and strong enough and much like the scripting language in Unix used for shell scripts (saying this on basis of $x and stuff...)....

Go for php or cgi....(priority to php)

On your choice and the kind of your website (what services information etc it is providing...)
 
Old 04-29-2005, 12:23 AM   #4
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
http://www.javascriptkit.com/howto/phpcgi.shtml

A link if u wud like to know more abt php and a simple comparison to cgi....
 
Old 04-29-2005, 01:17 AM   #5
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
i think php is really cool )
its' got very nice support for various
databases. Its' really a easy to write
stuff that access databases using php.
 
Old 04-29-2005, 02:57 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
FYI, CGI is an interface std, not a programming lang
 
Old 04-29-2005, 03:24 AM   #7
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
yep.. i agree with you..
ive' almost forgot about it
 
Old 04-29-2005, 09:11 AM   #8
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
My preference goes to... JSP
But PHP is very used, very stable, very fast, very standard, cross-platform... well that's the one you want (although I hate the language itself: it lacks consistency).

Yves.
 
Old 04-30-2005, 02:45 AM   #9
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
what do you mean by lacks consistancy..
just curious
 
Old 04-30-2005, 05:27 AM   #10
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
lacks consistency
means it does not load tons of classes to execute a simple script and simply works.
( i dont like java at all)
 
Old 04-30-2005, 05:42 AM   #11
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
Quote:
Originally posted by theYinYeti
My preference goes to... JSP
But PHP is very used, very stable, very fast, very standard, cross-platform... well that's the one you want (although I hate the language itself: it lacks consistency).

Yves.
Well it sounded as if he was saying it against php so
wanted to ask find out
 
Old 05-02-2005, 02:29 AM   #12
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
You're right, I'm both pro- and anti-PHP
PHP was created, and has improved, to do a specific job: dynamic web pages (even though it can do a lot more). And PHP does this job very well.

But, as I said, I don't like the way it lacks consistency. A few examples:
- Some functions have a long name (get_html_translation_table, number_format...) and some have a short name, often inspired by C (substr, strstr...).
- Some functions are prefixed by their "category" (strtoupper, str_pad, array_keys), and some aren't (crypt, count).
- Some multi-word functions have underscores (convert_cyr_string, in_array), and some have not (stripslashes, natcasesort).
- Some array functions take the array as first parameter (array_push, sort), and some take it as the last parameter (array_key_exists, in_array).
- Same with the main string in string functions: first position (wordwrap, substr_count) or not (str_replace, explode).

I use this language nonetheless, because it's working well. It's just that it is far from "elegant", and makes it easy to write mistakes, all the more because there's no strong typing.

Yves.
 
Old 05-02-2005, 02:35 AM   #13
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
By the way, in Java, nothing is loaded that is not used (except the core classes, much like "stdio"). If you use something, you import it, else you don't and it is not loaded.

There are indeed a vast number of classes. That's because each class is very specific: it does one thing and does it well. It's actually very close to the Unix philosophy. Each tool does a single little thing, and the power of Unix comes from the ability to combine those tools (with pipes, redirections...) to do what Windows users wouldn't even dream of doing. Same with Java.

Yves.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP vs. PHP Question irfanhab Programming 1 01-06-2005 07:43 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
PhP vs Asp essoft478 Programming 4 09-12-2004 03:36 PM
xml, php, asp ? woranl Programming 9 02-02-2004 10:14 AM
php vs asp.net lackluster General 4 07-18-2003 12:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration