Get current browsed page's url by remote

Discussion in 'PHP' started by Nestrer, Nov 14, 2006.

  1. #1
    I mean, like this:

    One visitor browse a php web page with a http fopen one php file on another server, is it possible to get the visitor browsed page's url by fopened php file on that remote server?
     
    Nestrer, Nov 14, 2006 IP
  2. Madcow

    Madcow Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Of course its possible ...

    but ajax and other javascripts may not work perfect on your web page that fopens other page . You need to write a function that changes css and js files that included on the page that you open.

    PS: Look function fopen in php online manual it has the script you requested to fopen remote files...

    Cya
    Irmak
     
    Madcow, Nov 15, 2006 IP
  3. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm slightly fuzzy on the setup so before rambling on about something totally unrelated I'll explain what I think the setup is.

    You have two pages, one of which is browsed by a visitor and opens a second page via fopen on a totally seperate server. The second page has no direct interaction with the user, just the first page.

    The second page will know the IP of the server where the first page is but wouldn't know any details about the user.

    You could set it up so that the first page communicates to the second page the details it needs though.
     
    streety, Nov 15, 2006 IP