2

Is there a way to add fixed POST parameter to every request apache passes to the php?

I can change pretty much anything on the server: .htaccess, httpd.conf, php.ini. Both parameter's name and value are fixed strings. To be specific, I'm trying to enable remote Xdebug that way.

clorz
  • 269
  • 2
  • 10

1 Answers1

2

Try creating this script somewhere in your include path

<?php
    $_POST['xdebug'] = 'true'; #or whatever you need

and setting it as the auto-prepend-file.

Andy
  • 5,190
  • 23
  • 34