"Header information"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crinch
Forum Newbie
Posts: 11
Joined: Fri Jun 16, 2006 6:28 am

"Header information"

Post by crinch »

Hi,

I want to some hints that, using php script how we can chagne our header's information like our ip, explorer's type and other properties which go in header.
Basically i want that i write a url in textfield after clicking on the button the request go to that url but my page should be previous one. And i myself give the information in header that go on the url.

Thanks alot.
Crinch.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Maybe cURL? Though I am not sure this is exactly what you want. I am actually not exactly sure what you want. Could you provide an example?
crinch
Forum Newbie
Posts: 11
Joined: Fri Jun 16, 2006 6:28 am

thanks for your response.

Post by crinch »

Actually i am interesting in that, whenever i go on any url, my original ip address and proxy did not show instead a fake ip and proxy displayed that i will give my self.
It is all done when a request is sent to any url, the explorer takes all this information with it, i want to change that.

If you have any idea, plz share with me.
thanks.
Crinch.
User avatar
aerodromoi
Forum Contributor
Posts: 230
Joined: Sun May 07, 2006 5:21 am

Re: thanks for your response.

Post by aerodromoi »

crinch wrote:Actually i am interesting in that, whenever i go on any url, my original ip address and proxy did not show instead a fake ip and proxy displayed that i will give my self.
It is all done when a request is sent to any url, the explorer takes all this information with it, i want to change that.

If you have any idea, plz share with me.
thanks.
Crinch.
I'd say you need an anonymous proxy for that...
You can't "just" replace an ip address with anything you want since the information you've requested should also arrive at your destination.

As to your php approach...
Of course you can resort to fopen and fgets. However, you'll have to consider that some search engines also provide an ip search...
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

a remote server need to know your ip in order to send data back to you so you can't hide your ip from from it.
Post Reply