kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Please allow to change the path for current page (rewrite) from $_SERVER['PHP_SELF'] to something else #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My nginx configuration is pretty custom so I had to hack and replace all 
$_SERVER['PHP_SELF'] in sources to $_SERVER['DOCUMENT_URI']. Can you make it 
possible to change it through configuration? Thanks!

Original issue reported on code.google.com by turneli...@gmail.com on 13 Jan 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Please put the code below to config.php:

$_SERVER['PHP_SELF'] = $_SERVER['DOCUMENT_URI'];

Original comment by iwind....@gmail.com on 21 Feb 2012 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by iwind....@gmail.com on 21 Feb 2012 at 8:21