fnobi / php-express

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

Accept opts.server value in engine.js #17

Open Markavian opened 5 years ago

Markavian commented 5 years ago

This pull requests aims to allow additional environment variables to be passed to PHP from Express; explicitly including req.url mapped to REQUEST_URI to help PHP understand more about the request being served.

The change allows:

Markavian commented 5 years ago

Example application used to test REQUEST_URI: https://gist.github.com/Markavian/ff100dcba4f4580ec87865c3d12a1240

Tested this branch locally using npm link and npm link php-express against sample express server.