I'd like to use tor as a proxy for curl requests in php. I've downloaded the Expert Bundle and extracted the contents, which is a bit confusing since the description of that download says:
Contains just Tor and nothing else. You'll need to configure Tor and all of your applications manually. This installer must be run as Administrator.
but there's no installer, it's just a zip-archive. Anyway if I run Tor/tor.exe in it then it starts as a process, and then I can use it with php curl by doing:
curl_setopt($ch, $CURLOPT_PROXY , 127.0.0.1:9050) curl_setopt($ch, $CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5)
This works and I can get a new IP by restarting the tor-process.
However I want more control than this. For instance I've tried creating a "torrc"-file and specify a different port for example, but it doesn't seem to read the file no matter where I put it. Where is it supposed to be placed anyway? Also, I try running different commands like the ones on here with the tor-executable but nothing works.
C:\Users\Oscar\Downloads\tor-win32-tor-0.2.5.12\Tor>tor -h C:\Users\Oscar\Downloads\tor-win32-tor-0.2.5.12\Tor>
I get no kind of feedback. Only difference is that this wont tart the tor-process. What am I doing wrong?