Welcome to WebmasterWorld Guest from 54.146.180.94

Forum Moderators: coopster & jatar k

pass user ip

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

5+ Year Member



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)

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



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)

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



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)

5+ Year Member



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)

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



You can always use output buffering.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month