My PHP script runs okay when my traffic is 5000 visitor/ DAY - no error.
When I suddenly increase my traffic spent to 3000 visitor/ HOUR I get this many errors:
[26-May-2017 07:30:03 Asia/Jakarta] PHP Warning: file_get_contents(http://mydomain1.com/api/ip2country_v6/?ip=76.119.xxx.xxx): failed to open stream: HTTP request failed! in /home/h32xxx/mydomain2.com/landings/script.php on line 47
- This php script is in my mydomain2.com
- file_get_contents is requesting from mydomain1.com
My mydomain2.com
and mydomain1.com
is on 1 server account. I can't do 'http://localhost/~h32xxx/api/ip2country_v6/?ip=76.119.xxx.xxx' because my CPanel settings block it (mod_userdir
is disabled)
What is the problem and how do I fix it?