Is there a way to have a php script execute with a specific ip address -


What is a method that is a php script that uses file_get_contents to use the IP address, which is the server's Is different from IP address? We have 5 IP addresses and want to make a specific use for this purpose.

Yes, this is possible. You need to configure the stream reference that you want to use.

  & lt ;? Php // reference options $ ctxopts = array ('socket' = & gt; array ('bindto' => '192.168.0.100:02',),); // References ... $ reference = stream_contense_cent ($ ctxopts); // ... and use it to fetch data echo file_get_contents ('http://www.example.com', false, $ reference); You can find more information at   

You can

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -