[PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
Hi,

i'm looking for a method to setup php to use
a proxy for all http/ftp connections.
i know it's possible to write a script
that can do this, but i need to setup php
itself for that (php.ini or something like this)

i tried different tools for that to tunnel all
connection but i didn't found anything that
works for me


regards

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Raditha Dissanayake
Hi,

There is a topic called transparent proxying. Don't have any links in my 
bookmarks but if you visit either the squid proxy websites or the 
iptables website you will find it. (this is usually done with this 
combination but can be done with other proxy/firewall combos as well).

Basically what happens is that at the network layer all outbound port 80 
traffic is redirected by iptables to the proxy server (which will have 
to run on a different port). Most ISPs in asia resort to this tactic.

all the best

Jack Bauer wrote:

Hi,

i'm looking for a method to setup php to use
a proxy for all http/ftp connections.
i know it's possible to write a script
that can do this, but i need to setup php
itself for that (php.ini or something like this)
i tried different tools for that to tunnel all
connection but i didn't found anything that
works for me
regards

 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
The problem is that i'm using a windows for that,
the anomizer i use to connect to different proxys
waits on 127.0.0.1/localhost, so i can't redirect
the whole outbound traffic on port 80 for that


Hi,

There is a topic called transparent proxying. Don't have any links in my
bookmarks but if you visit either the squid proxy websites or the
iptables website you will find it. (this is usually done with this
combination but can be done with other proxy/firewall combos as well).

Basically what happens is that at the network layer all outbound port 80
traffic is redirected by iptables to the proxy server (which will have
to run on a different port). Most ISPs in asia resort to this tactic.

all the best

Jack Bauer wrote:

Hi,

i'm looking for a method to setup php to use
a proxy for all http/ftp connections.
i know it's possible to write a script
that can do this, but i need to setup php
itself for that (php.ini or something like this)

i tried different tools for that to tunnel all
connection but i didn't found anything that
works for me


regards





-- 
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php