Skip to content

Instantly share code, notes, and snippets.

@gmcinnes
Last active December 13, 2016 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmcinnes/9ed690b33b5bded52dbea86eb46794bb to your computer and use it in GitHub Desktop.
Save gmcinnes/9ed690b33b5bded52dbea86eb46794bb to your computer and use it in GitHub Desktop.
wtf php
<?php
$x = $this->redirected_hostname();
var_dump($x);
var_dump($uri);
$y = $uri . $x;
var_dump($y);
var_dump("wtf");
die();
#string(34) "dev-www-marsdd-com.pantheonsite.io"
#string(7) "http://"
#string(41) "http://studioy.dev.marsdd.com"
#string(3) "wtf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment