php-proxy icon indicating copy to clipboard operation
php-proxy copied to clipboard

anyway to get form data in index.php?

Open hqin2013 opened this issue 8 years ago • 3 comments

hi

I want to implement "choose server" -- frontend like unblockvideos.com, backend use SOCKS5,but i can't get form data in index.php , it seems nothing to past to index.php in $_POST....... how to solve this problem?!

Regards hqin

hqin2013 avatar Jul 23 '17 03:07 hqin2013

Why can't you do this from your front-end? Querying a different server-xxx.domain.com/index.php based on whatever dropdown server value was selected on your main site's page?

Athlon1600 avatar Jul 25 '17 20:07 Athlon1600

i just wanna to reduce my server resource,most of my VPS are small. another thought is: i can change server quick just change the SOCKS5 .

PS: I tried use Ajax to re-build "config.php " file,but seems not work.

$config['curl'] = array(
	 CURLOPT_PROXY => 'IP:PORT',//change by front-end
	 CURLOPT_CONNECTTIMEOUT => 5
);

hqin2013 avatar Aug 01 '17 02:08 hqin2013

I don't see what the problem is then. Just change that line into:

 CURLOPT_PROXY => $_GET['proxy']

Athlon1600 avatar Aug 07 '17 21:08 Athlon1600