PHP's URL-string Easter-egg, implemented on Rack
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.markdown
config.ru

README.markdown

Mark of the Beast

A thoroughly pointless recreation of PHP's URL string Easter-egg for Rack. Just in case you wanted to pretend your app was running on PHP.

Any URLs containing the magic query-string =PHPE9568F36-D428-11d2-A769-00AA001ACF42 will bypass the usual request path and instead generate the MARK OF THE BEAST. Here's how:�

require 'lib/rack_php'

class Useless
  def call(env)
    [200, {"Content-Type" => "text/plain"}, env['REQUEST_URI']]
  end
end

use RackPhp
run Useless.new

Gem Installation

Not likely.