PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I can't figure out how to specify a source IP address to use when using fopen. My box has multiple IP addresses on it and I need to specify different sources for different scripts. Any ideas?
The server itself has multiple IP addresses. When fopen runs, it sources the IP connection from the first binded IP. I need to be able to control which IP is used in this application.
I'm nearly certain this can't be done with PHP itself. You might be able to do it with Apache but since you're making your request from the CLI, I think you'll have to do it with a *nix network setting somewhere.