Well, it could be that port 3128 is a squid proxy, whereas port 5100 is usually used by SOCKS proxies.
|
Quote:
hello there matir i think its already midnight over there... its taking me quite awhile until my script to be done... is it ok if you visit my thread after you wake up? ill still post some issues regarding this matter when it gets done. thank you very much for the help i extremely appreciate it... and more power to you....:p |
Quote:
sorry about this martir,,,, because i got a new error: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. my script is: $context = stream_context_create(array('http'=>array('proxy'=>'tcp://203.167.109.146:5100'))); $contents = file_get_contents("http://domainname/webpage.htm", false ,$context); |
Just changing the port to 5100 won't work unless there's a Socks 4/5 proxy server on that host.
|
Quote:
hi there again matir;) i saw some free socks proxy sites would this work? even if the port is not exactly 5100? the sites are: http://www.atomintersoft.com/product...y/socks5-list/ http://www.samair.ru/proxy/socks.htm thanks:) |
You just need to make sure its pointed to a valid proxy.
|
Quote:
Warning: file_get_contents(http://www.yahoo.com) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond my code is: <? $context = stream_context_create(array('http'=>array('proxy'=>'80.108.112.111:32167'))); $contents = file_get_contents("http://www.yahoo.com", false ,$context); ?> socks4/5 i tried were: 201.235.78.20:1080 socks 4/5 Argentina 200.114.224.112:1080 socks 4/5 Argentina 200.126.186.153:1080 socks 4/5 Argentina 84.112.18.48:1080 socks 4/5 Austria 80.108.4.231:1080 socks 4/5 Austria 80.108.28.208:1027 socks 4/5 Austria 80.108.112.111:32167 socks 4/5 Austria i tried them all, but all of them went in vain.... :( |
hrrm. have you tried any http proxies?
And what version of PHP are you running? |
Quote:
i have PHP 5 here...... i tried using http proxies my code is: <? $context = stream_context_create(array('http'=>array('proxy'=>'http://82.229.128.171:8080'))); $contents = file_get_contents("http://www.yahoo.com", false ,$context); ?> i got a warning that says: Warning: file_get_contents(http://www.yahoo.com) [function.file-get-contents]: failed to open stream: Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? |
Try removing the http:// from the front of the proxy name.
|
Quote:
i did that my code now is: <? $context = stream_context_create(array('http'=>array('proxy'=>'82.229.128.171:8080'))); $contents = file_get_contents("http://www.yahoo.com", false ,$context); ?> warning says: Warning: file_get_contents(http://www.yahoo.com) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. |
Try taking a look at the information on this page: http://livedocs.php.mirrors.powertri.../wrappers.html
|
Quote:
i dont know where in the document would i find my answer............help:confused: |
Hi Guys,
I also get a 403 Forbidden error ... Port 443 only when I use https I'm running a virtual host and I use SELinux, the same problem would not be encountered whenever i disable SELinux. my document root is /www/html wherein /www is a mounted disk partition. i get this error in my log/messages ...audiit(1125570534.322:0): avc: denied { getattr } for pid=26442 comm=httpd path=/www dev=hda8 ino=2 scontext=root:system_r:httpd_t tcontext=system_u:object_r:file_t tclass=dir please help |
Quote:
just my :twocents:... |
All times are GMT -5. The time now is 09:02 AM. |