trinvh2 / php5rp Goto Github PK
View Code? Open in Web Editor NEWA PHP Reverse Proxy
A PHP Reverse Proxy
Hi There,
I have read the readme and I am having some trouble getting this to work. I
have tried the following in my index.php file:
<?php
include 'ProxyHandler.php';
$proxy = new ProxyHandler('http://10.87.0.220/','http://www.google.com');
$proxy->execute();
?>
(10.87.0.220 is the IP of my dev server)
However the server just outputs a blank screen. Originally, mod_rewrite wasn't
working however I fixed that with a2enmod rewrite (Before, Apache threw an
internal server error page).
Any help is appreciated, Thanks
Original issue reported on code.google.com by [email protected]
on 20 Jun 2010 at 10:18
Hello,
I am not familiar with Google Code (yet) but I'd like to point out that
your latest version (7) as of today has a typo on line 61: your opening
curly brace appears at the end of your comment instead of before it.
In case it matters the comment in question is "Default request method is
'get'".
Other than that, this seems to do exactly what I'm looking for, given that
Debian doesn't offer mod_proxy packages for Apache 1.3. So thank you!
Original issue reported on code.google.com by [email protected]
on 29 Nov 2007 at 6:33
When an array of variables is used in a form like this:
<form>
<input name='inptest[1]'></input>
<input name='inptest[2]'></input>
</form>
php interprets the array itself. With this code in the form post data
encoding part this problem is solved:
// Encode and form the post data
foreach($_POST as $key=>$value)
{
if (is_array($value)) {
foreach($value as $idx=>$val) {
$post[] = urlencode($key.'['.$idx.']')."=".urlencode($val);
}
} else {
$post[] = urlencode($key)."=".urlencode($value);
}
}
Original issue reported on code.google.com by [email protected]
on 3 Mar 2008 at 5:44
'{' Was commented out
Original issue reported on code.google.com by ytoply
on 24 May 2013 at 3:59
Attachments:
Data associated with an HTTP PUT is not forwarded
Original issue reported on code.google.com by [email protected]
on 5 Nov 2009 at 2:48
Move comments out of the {
Original issue reported on code.google.com by [email protected]
on 1 Nov 2013 at 12:50
Attachments:
Not all PHP5 configs support apache_request_headers. For one, PHP may not be
running on Apache.
Or it may be configured in such a way so as not to allow access to that
function for security
reasons.
Thus, when that function is not available, php5rp should try its best to
re-construct the request
headers from PHP globals such as $_COOKIE and others.
Original issue reported on code.google.com by [email protected]
on 17 Aug 2008 at 6:59
when I got the source from svn, line ~65 looked like this:
elseif ($_SERVER['REQUEST_METHOD'] !== 'GET') // Default request method is
'get' {
The '{' is commented out.
Original issue reported on code.google.com by [email protected]
on 1 Aug 2008 at 6:28
fixed a syntax error where a curly brace was missing because it is added after
a comment
Original issue reported on code.google.com by [email protected]
on 15 Dec 2011 at 5:52
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.