A 3rd party service that I’m using returns the users to a url like this:
site.com/something.php?id=XXX&something=abc....
Therefore, I need to be able to accept $_GET parameters for only one part of the site.
Is there a way to put a file outside of codeigniter’s application directory which will do something like this:
<?
$id = $_GET['id'];
$something = $_GET['something'];
//Do something so codeigniter thinks this is a request to site.com/process/$id/$something
require('index.php'); //codeigniter's index.php file
?>
I remember using putenv() to achieve this in the past, but don’t remember the details.
Not sure about putenv, but if worse comes to worse you can get the contents of the get array by exploding
$_SERVER['QUERY_STRING']get doesn’t need to be enabled and you still have access.