Results 1 to 23 of 23

Thread: PHP vs CGI Also, how do I change my email address

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    10

    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

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  4. #4
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    PHP is like a heated bullet, bursting from a barrel. CGI is like a steam powered locomotive, chugging along.

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  6. #6
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    I think you will find it more practical to learn PHP or some other scripting language.

  7. #7
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    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)

  8. #8
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    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.

  9. #9
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    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?

  10. #10
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    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.

  11. #11
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    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.

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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

  13. #13
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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.

  14. #14
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    .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.

  15. #15
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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.

  16. #16
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    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.

  17. #17
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  18. #18
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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.

  19. #19
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    LOL that's what I thought.
    Last edited by nkad; Dec 21st, 2003 at 03:26 PM.

  20. #20
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by nkad
    LOL that's what I though.
    um........ okay....

  21. #21
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  22. #22
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    You're all missing the point - everyone should be responding to [email protected].
    Please rate my post.

  23. #23
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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
  •  



Click Here to Expand Forum to Full Width