Welcome to WebmasterWorld Guest from 54.196.233.208

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

pass user ip

     
3:36 pm on Jan 27, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 13, 2009
posts:46
votes: 0


i am looking for some thing like fopen but i dont want to open file with my server ip i want to open file with visitor ip is there any way to do this
when fopen open a file so it open with the server ip what for user ip pass ?
7:16 pm on Jan 27, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


You are trying to use fopen on a url on your own site? Why do that? If you want to open a file on your own server just use the filesystem path.
11:29 pm on Jan 27, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 9, 2003
posts:3416
votes: 0


fopen can be used with URLs as well (if allow_url_fopen is enabled). [ fopen [us.php.net] ]

I believe nick patrick is trying to have the requests to a third party server look like they are coming from the user who initiated the request to his server?

If that is the case, the answer is "it's not possible." Even if you spoof the IP address, that would just mean your server wouldn't receive the response. On the internet, the IP you send is the IP which receives the reply.

11:49 pm on Jan 27, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 13, 2009
posts:46
votes: 0


thats not the case server is my and i want to fopen my own file in the same server i have but file must echo out some thing like 'done' and i dont want it on the page where fopen is that is the case :)
10:38 pm on Jan 28, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


You can always use output buffering.