fatherted Posted November 28, 2006 Share Posted November 28, 2006 Hi,I've written a simple script that retreives a page from a site using get_filecontents. I have a computer with two differnet network interfaces eth1 (192.168.1.1) and eth0 (192.168.1.2) . I would like to be able be able to tell the script which interface to use.e.g php script.php eth1php script.php eth0any suggestions? I can't find any linux command line method of telling it which interface to run the script, and i had a look at sockets but i couldn't see anyway I could pass commands to them , as they seem more suited to client server applications.many thanks Link to comment https://forums.phpfreaks.com/topic/28780-running-scripts-on-different-network-interfaces/ Share on other sites More sharing options...
tinysnowman Posted December 26, 2008 Share Posted December 26, 2008 I have the same question - can nobody help on this topic??? Link to comment https://forums.phpfreaks.com/topic/28780-running-scripts-on-different-network-interfaces/#findComment-723880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.