Default proxy settings for PHP4/5

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
R13ckJ
Forum Newbie
Posts: 1
Joined: Thu Jun 05, 2008 10:01 am

Default proxy settings for PHP4/5

Post by R13ckJ »

Wow my first post on PHPDN!! Hi everyone :)

So why am I posting? Well two things: 1. I want to get more involved in the opensource community; 2. I need your help!

Currently I'm working on a new, all singing, all dancing development server. So far I have the following:
  • Ubuntu gutsy platform
  • Apache 2
  • Multiple development ports per developer running PHP4 and 5
  • Zend Platform
  • PHP Unit
  • RoR
  • SVN
  • and other goodies!
There are a few things I have to do before first release:
  • Some shell scripts to facilitate administrator tasks
  • A wiki for users
  • Setup default proxy settings for PHP
When I'm finished I'll post articles on how all of this was achieved, but for now I need help with the last item (Setup default proxy settings for PHP4/5).

The development server is behind our proxy, which requires authentication. But our live servers don't use a proxy.

I need to be able to use functions like fopen on the development server and still have them working on live (i.e. I need to change default proxy settings on dev). Being able to change them in php.ini would be great, but doesn't seem to be possible.

So far I've looked at:
  • Prepending a default context steam: Not sure whether I can use authentication; If it does work, it'll only work with PHP5.
  • Transparent proxies, but they don't seem to support authentication.
If anyone knows what I'm talking about and has a possible solution, please let me know.

Thanks :)
Post Reply