|
-
Dec 20th, 2003, 02:22 PM
#1
Thread Starter
New Member
PHP vs CGI Also, how do I change my email address
I have sorta of a problem. I'm wondering which is better to learn, either PHP or CGI.
Also, how do I change my email address here? Please respond to [email protected] Thanks
-
Dec 20th, 2003, 02:27 PM
#2
No one is going tot ake the time to e-mail you. You posted on a forum, therefore the responces will be.... you guessed it... on the forum!
Anyway, PHP is awesome but CGI has its uses.
Also, this is the WRONG FORUM. I fail to see how PHP vs CGI is relavent to VB coding
-
Dec 20th, 2003, 02:29 PM
#3
Originally posted by kasracer
Also, this is the WRONG FORUM. I fail to see how PHP vs CGI is relavent to VB coding
Maybe its all the acronyms that are throwing people off.
Anyways, you can change your email address through the User CP
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 20th, 2003, 02:32 PM
#4
Fanatic Member
PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.
-
Dec 20th, 2003, 02:34 PM
#5
Originally posted by nkad
PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.
So that's a yea or a nay then?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 20th, 2003, 02:39 PM
#6
Fanatic Member
I think you will find it more practical to learn PHP or some other scripting language.
-
Dec 21st, 2003, 03:34 AM
#7
Addicted Member
Originally posted by nkad
PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.
CGI isn't a programming language. On top of that, PHP can actually be ran through CGI.
Actually you can have CGI use a compiled EXE. What do you think is faster, pure ASM or PHP? Give me the ASM.
Now is the question is between Perl and PHP? I say go with PHP. It's a lot easier to learn and use. (IMHO)
-
Dec 21st, 2003, 03:55 AM
#8
Fanatic Member
I think you mean machine code. Yes, I know CGI can be complied in to machine code. But so can PHP and so can .Net. So, whats your point? CGI itself does in fact have alot of issues with performance and scalability.
Last edited by nkad; Dec 21st, 2003 at 04:03 AM.
-
Dec 21st, 2003, 04:07 AM
#9
Addicted Member
Sorry, that was all just my opinion.
My point... Hmmm. Well CGI isn't a programming language, so you can't say thats it's fast or slow in comparsion to PHP.
CGI actually is Common Gateway Interface and that's just a way to let a server use some other program. That program could in fact be PHP, Perl, or any language. It is quite common for CGI to call a compiled program (machine code, yes).
How many websites do you know that call compiled PHP or even compiled Perl?
-
Dec 21st, 2003, 04:28 AM
#10
Fanatic Member
CGI isn't a programming language, so you can't say thats it's fast or slow in comparsion to PHP
Your correct, It's not. Neather is ASP. If you consider the fact that you can use vbscript or javascript to interface with ASP. ASP is like CGI in the fact that it preforms the same functions. It's an underlying interface in which to interact with the webserver. It's this interface in which I am refering to that does not scale or perform well on high volumn systems.
-
Dec 21st, 2003, 04:32 AM
#11
Addicted Member
Yes, CGI is getting slow by today's standards. I just installed PHP on a web server a few days ago and you can bet I picked API over CGI.
I was just pointing out that's it's not fair to compare PHP and CGI. They are completely different things.
-
Dec 21st, 2003, 04:48 AM
#12
CGI is something that's way too powerful for something as simple as web pages. Overkill.
But then, is this for webpages, or for front end programming? In that case, I guess CGI would be better, although PHP can be used. Check out http://gtk.php.net
-
Dec 21st, 2003, 11:39 AM
#13
Originally posted by nkad
But so can PHP and so can .Net
Not true at all. PHP can be compiled into machine code, but it isn't anywhere near as optimized as it would be using C++. .NET, however, is never compiled into machine code. It is compiled on execution.
-
Dec 21st, 2003, 01:11 PM
#14
Fanatic Member
.NET, however, is never compiled into machine code. It is compiled on execution.
.NET It is compiled on execution when it can't find the compiled version of itself or it needs to re-compile itself. So yes, you are correct.
Ok, this thread is now dull. Cya.
-
Dec 21st, 2003, 01:12 PM
#15
Originally posted by nkad
.NET It is compiled on execution when it can't find the compiled version of itself or it needs to re-compile itself.
No .NET is code is always compiled on execution. When you click build, it never compiles it, but sets it up to be executed and compiled.
-
Dec 21st, 2003, 01:21 PM
#16
Fanatic Member
Really? I was sure that it would only compile once. Infact I remember microsoft talking about this. I mean, having the damn thing re-comile each time the page is called is so wastfull. Are you sure? Thats just crazy.
-
Dec 21st, 2003, 01:53 PM
#17
Originally posted by kasracer
Not true at all. PHP can be compiled into machine code, but it isn't anywhere near as optimized as it would be using C++. .NET, however, is never compiled into machine code. It is compiled on execution.
You seem to like saying never.
Ever heard of ngen?
And no, .NET code isn't recompiled into machine code at every execution. It is JIT compiled the first time, then placed into a cache so that the next execution will be invoked faster.
After the program is removed from the cache (be it because of a certain amount of time passing, or the memory being needed, or whatever), then the program is JIT compiled again.
Do your research.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 21st, 2003, 02:04 PM
#18
Originally posted by crptcblade
You seem to like saying never.
Greatest.Word.Ever.
Originally posted by crptcblade
And no, .NET code isn't recompiled into machine code at every execution
I never said it was compiled into machine code every execution, but it is compiled when it is executed and as it is running. It will cache it partially, but it still will compile parts of the program each execution.
Also, JIT doesn't compile the entire program, it compiles what is needed to run the program, then another compiling engine compiles the program as it is running.
This thread is stupid, btw.
-
Dec 21st, 2003, 02:05 PM
#19
Fanatic Member
LOL that's what I thought.
Last edited by nkad; Dec 21st, 2003 at 03:26 PM.
-
Dec 21st, 2003, 02:07 PM
#20
Originally posted by nkad
LOL that's what I though.
um........ okay....
-
Dec 21st, 2003, 02:29 PM
#21
Originally posted by kasracer
This thread is stupid, btw.
Ah, something we can all agree on.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 21st, 2003, 03:52 PM
#22
Frenzied Member
You're all missing the point - everyone should be responding to [email protected].
-
Dec 21st, 2003, 03:53 PM
#23
Originally posted by Shawn N
You're all missing the point - everyone should be responding to [email protected].
If anything, I'll send nude pictures of myself to it.
No answers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|