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
Printable View
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
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
Maybe its all the acronyms that are throwing people off.Quote:
Originally posted by kasracer
Also, this is the WRONG FORUM. I fail to see how PHP vs CGI is relavent to VB coding
Anyways, you can change your email address through the User CP
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?Quote:
Originally posted by nkad
PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.
:confused:
I think you will find it more practical to learn PHP or some other scripting language.
CGI isn't a programming language. On top of that, PHP can actually be ran through CGI.Quote:
Originally posted by nkad
PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.
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)
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.
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?
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.Quote:
CGI isn't a programming language, so you can't say thats it's fast or slow in comparsion to PHP
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.
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
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.Quote:
Originally posted by nkad
But so can PHP and so can .Net
.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.Quote:
.NET, however, is never compiled into machine code. It is compiled on execution.
Ok, this thread is now dull. Cya.
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.Quote:
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.
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.
You seem to like saying never. :rolleyes:Quote:
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.
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.
:)
Greatest.Word.Ever.Quote:
Originally posted by crptcblade
You seem to like saying never. :rolleyes:
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.Quote:
Originally posted by crptcblade
And no, .NET code isn't recompiled into machine code at every 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.
LOL that's what I thought.
um........ okay....Quote:
Originally posted by nkad
LOL that's what I though.
Ah, something we can all agree on.Quote:
Originally posted by kasracer
This thread is stupid, btw.
:)
You're all missing the point - everyone should be responding to [email protected]. :p
If anything, I'll send nude pictures of myself to it.Quote:
Originally posted by Shawn N
You're all missing the point - everyone should be responding to [email protected]. :p
No answers