Now coming to the point. If you are integrating a payment system in your application and the payment gateway return you like the following method :
http://www.mydomain.com/checkout/success/payment?ORDER_ID=1234&TIMESTAMP=12345678&PAID=1&METHOD=pay&...bla ... bla
then you should think about enabling the query-string.
But enabling query-string by the config it may turned off the segment. It is a great problem.
So what can we do? There is a good solution for that. Here goes the solution:
$query_str = $_SERVER['QUERY_STRING']; $req_uri = $_SERVER['REQUEST_URI']; $org_query = substr($req_uri, strlen($query_str)+1); parse_str($org_query, $_GET); print_r($_GET);
Now we can get the query string by :
$myOrder = $_GET['</code><code>ORDER_ID</code><code>'];
Isn’t very simple? Happy coding ………….