Page 1 of 1

PHP socket programming question.

Posted: Wed Mar 24, 2010 11:21 am
by captjack
Hello all,

I am looking for a way in PHP to bind a socket to a device name in Linux (ie. "eth0" or "eth1") . Basically I want the equivalent of the SO_BINDTODEVICE functionality that exists in C for setsockopt function, but after googling for a while I haven't been able to find a suitable answer or equivalent to set_sock_option.

Thanks in advance.