in reply to Re: How CGI works
in thread How CGI works

if you stumble-upon a URL somewhere that contains the string, php, you can be 100% certain that what the web-server is doing is executing that PHP program

This is so very wrong.

It it were a file suffix indeed and the webserver configured to execute those pages with PHP, then that would work.
That is a somewhat common thing, but not ubiquitous.

Don't be so certain, as there are at least three biggish companies where ".php" web pages are run with perl and a templating engine.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

Replies are listed 'Best First'.
Re^3: How CGI works
by CountZero (Bishop) on Feb 25, 2018 at 12:15 UTC
    The original PHP was even written in Perl.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

      Apparently not.