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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -