Create a Proxy

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chalks
Forum Contributor
Posts: 447
Joined: Thu Jul 12, 2007 7:55 am
Location: Indiana

Create a Proxy

Post by Chalks »

I was wondering if someone could point me in the right direction to create a proxy on my server. I'm planning on using it for my own personal use, so it will be password protected. I found a few scripts online that I could download, but I'd rather write my own. I tried examining the source code that I found, but it was rather confusing as it had very little spacing... hard for me (as a newbie php programmer) to decipher. So, I have no idea where to start, really. Any functions I should look at in particular?

Thanks guys. :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

cURL, Snoopy, fsockopen() and friends...

preg_replace() for url's. Hope you don't need to parse Javascript generated urls.
User avatar
Chalks
Forum Contributor
Posts: 447
Joined: Thu Jul 12, 2007 7:55 am
Location: Indiana

Post by Chalks »

Ah, thanks feyd. :)

and no, I don't. This is just for letting me play my games while I'm at work. It's the American Dream!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You may be interested in a piece of code I posted for Heavy. Search Heavy's posts, not mine. ;) It wasn't on proxies, per se, but on source code browsing, if memory serves.
Post Reply