php curl how not to use the system hosts file for name resolution? -
because of security reasons,the system limit curl destination domains.for example ,a.xxxx.com in collection of safe domains.but ip address of domain not safe domain.that leads:
$ch = curl_init('http:// 172.16.139.216:81'); //is fobbiden $ch = curl_init('http:// a.xxxx.com:81'); //is ok
now want domain "a.xxxx.com"
pointing other ip address. not have root permission of machine,i can't modify /etc/hosts
. wanna in php script, there way?
thx much.
Comments
Post a Comment