Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.