Re: [PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 5:48 am, Matt wrote: > I am experimenting with the fsockopen function to send custom UDP > packets. > What I would like to do is to be able to nominate the LOCAL port that > my UDP > packet originates from. What happens currently is that when I execute > my > code below I get

[PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Matt
Hello, I am experimenting with the fsockopen function to send custom UDP packets. What I would like to do is to be able to nominate the LOCAL port that my UDP packet originates from. What happens currently is that when I execute my code below I get a random port >1023 allocated. What I want to