How in PHP to use a specific network interface?
Now looking for a solution, but maybe someone faster prompt.
I need to make outgoing connections executing in php for a specific web application or started via console is done through a separate network interface.
March 12th 20 at 07:56
How to display parent record from the database which has a child record mysql?
How to work with dynamic filters on frontend?
As for webpack to connect postcss-merge-rules?
How to make phpStorm to work with thick arrows?
When it is necessary to use wp_rest_postdata and similar Wordpress function?
How to go to the item page, when used in the buck HAL?
How to make access to external ip from LAN?
How to make Excel 2016 and update data from Sharepoint 2016?
More answers about
"How in PHP to use a specific network interface?"
March 12th 20 at 07:58
at the application level is not solved.
Or configure routing, or print the application in a separate virtual reality and cling to the correct interface.
Well, the runlevel script PHP?
I know you can if you use curl to specify the interface. But for example globally for him to change the interface (for example the whole script at runtime) I have not yet found.
commented on March 12th 20 at 08:01
utility network - provides tools interfaces.
The php interpreter is not required. PHP script network does not work, it relies on the operating system. So at the level of the start of the script php will not work.
Can you send in cgroup )
but I think it will be easier to go to Docker or dev )
commented on March 12th 20 at 08:04
, by the fact that it can not be done on the php level
commented on March 12th 20 at 08:07
Find more questions by tags