Here is a patch that fixes the "Non-static method
cannot be called statically" error you give if running
with PHP5. I am running with PHP v5.0.4, so this is
the only version I know this patch fixes.
The basic change was to move the encode_url() and
decode_url() out of the PHProxy constructor and into
the PHProxy class. Then updated any calls to the two
methods, to access them correctly.