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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.