Patch for using proxies

From: Date: Fri, 12 May 2000 13:51:23 +0000
Subject: Patch for using proxies
Groups: php.version4 
Request: Send a blank email to php-version4+get-14920@lists.php.net to get a copy of this message
Hi This is a patch file which makes include, require and fopen functions able to get files via proxy servers. User can set proxy server host in ini file by adding "proxy" configuration variable. He also is able to change default proxy port ( 8080 ) by configuration variable "port". I also added possibility to change get mathod to post - when "post_method" configuration variable is "set" This settings may be changed at runtime by three functions: proxy_host(arg) - set the proxy host from arg proxy_port(arg) - set the proxy port from arg post_method() - set the method to post. Unfortunatly settings added by these three functions are reseted by each call include, require and fopen functions. I wanted to do this as in error_reporting. But I wasn't able to reset settings at the end of the script - (error_reporting makes it) - I wrote about it to the list. So I'm going to add the same functionality as in error_reporting - actually isn't very good. Maybe someone knows sollution ? This is "beta" version, so could you tell me what changes should I do, because I,m very interested to add this to standard edition of PHP. -- Adam -- _/ _/ _/_/_/ ----- Adam Kropielnicki, adasz@wp.pl ----- _/ _/ _/ _/ _/ Wirtualna Polska SA http://www.wp.pl _/_/_/_/ _/_/_/ _/ _/ _/ --------==* Moja WP: http://moja.wp.pl *==----------

« previous php.version4 (#14920) next »