In PHP, how can I get any string after the domain to be a php variable? Ex: me.com/FOO, me.com/VAR3

Posted by jdc on Stack Overflow See other posts from Stack Overflow or by jdc
Published on 2010-05-27T15:58:20Z Indexed on 2010/05/27 16:01 UTC
Read the original article Hit count: 141

Filed under:
|

so my index.php can be this:

<?php
      $restOfURL = ''; //idk how to get this
      print $restOfURL; //this should print 'FOO', 'VAR3', or any string after the domain.
 ?>

© Stack Overflow or respective owner

Related posts about php

Related posts about redirect