anyway to get form data in index.php?
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
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?
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
);
I don't see what the problem is then. Just change that line into:
CURLOPT_PROXY => $_GET['proxy']