Git Product home page Git Product logo

php5rp's People

Watchers

 avatar

php5rp's Issues

How to use php5rp

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

Typo on line 61

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

Array $_POST variables

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

apache_request_headers not available in all php configs

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

commenting out starting brace

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.