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 ?
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.
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 :)