fnobi / php-express

enable express server to exec php.
36 stars 15 forks source link

PHP_SELF is always set to page_runner.php #11

Open stvcisco opened 8 years ago

stvcisco commented 8 years ago

I have php code that depends on the value of the current location using $_SERVER['PHP_SELF'] but it looks like no matter what page I'm on that value is set to this: [PHP_SELF] => server/node_modules/php-express/lib/PHPExpress/../../page_runner.php Is there a way to have the $_SERVER values set to reflect the requested url?

Also the $_SERVER['REQUEST_URI'] value is not set at all (otherwise I could use that instead).

Markavian commented 6 years ago

For setting REQUEST_URI see: https://github.com/fnobi/php-express/pull/17