ps332817157 / php5rp

Automatically exported from code.google.com/p/php5rp
0 stars 0 forks source link

How to use php5rp #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 jon...@abpni.co.uk on 20 Jun 2010 at 10:18

GoogleCodeExporter commented 9 years ago
OK I finally managed to get some error output going. This is what appears:

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in 
/var/www/default/ProxyHandler.php on line 67

Thanks

Original comment by jon...@abpni.co.uk on 20 Jun 2010 at 10:32

GoogleCodeExporter commented 9 years ago
I'm getting the same error:

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in 
C:\inetpub\wwwroot\services\rt3\ProxyHandler.class.php on line 67

I'm using IIS 5.1 on XP

Original comment by bjmg...@gmail.com on 24 Aug 2010 at 10:15

Attachments:

GoogleCodeExporter commented 9 years ago
This is apparently due to the same typo in issue number 1

Original comment by bjmg...@gmail.com on 24 Aug 2010 at 10:36