Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: How CGI works

by Happy-the-monk (Canon)
on Feb 23, 2018 at 14:53 UTC ( [id://1209833]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (None)
    As of 2024-04-25 00:47 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found