Jump to content

PHP Proxy


Hypermx

Recommended Posts

Hey.

 

Ive started a project, Where you can type something in a textbox, and then press a button.

 

What you've typed in the textbox should be saved to the php.

 

And the php proxy will visit a site, ex google:

 

Sketch:

<?php
$textbox =  $_GET['textbox'];

phpproxy_goto('http://www.Google.com/search?hl=en&q=' $textbox);
?>

 

So the my website shows the site:

http://www.google.dk/search?hl=en&q={the textbox}

 

and google whould think it was showed from the servers IP instead of the real clients IP

 

 

But i think its hard just to code something like that, thats why i wanted some help in here.

 

Link to comment
https://forums.phpfreaks.com/topic/175120-php-proxy/
Share on other sites

Okay, I've installed PHProxy and i get these errors:

 


Warning: fwrite(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 682

Warning: fgets(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 690

Warning: fclose(): supplied argument is not a valid stream resource in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 862

Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php:682) in /www/hostrator.com/h/y/p/hypermx/htdocs/proxy2/index.php on line 1176

 

So i looked it up and found something about permissions.

So i set the permissions for the proxy folder to 777 and each file to 666

 

But this didn't help it.

Link to comment
https://forums.phpfreaks.com/topic/175120-php-proxy/#findComment-923391
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.