On 09/12/2012 07:02 PM, Daniel Brown wrote:
So, the answer is no, PHP is not able to do that.
There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and
simpler) for IP.
That's correct. However, that doesn't mean you can't put in a
feature request at https://bugs.php.net/ to see if it can be included
in a future release.
PHP handler is triggered depending on the request (ie: GET /dir/file.php)
The HTTP transaction stil has to be initiated fisrt then.
The TCP connection has been opened before the HTTP gets to Apache.
No chance PHP could change the binding IP.
Filing the request is IMHO technically irrelevant.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php