"Johan Vikerskog (ECS)" wrote:

> ok.
> I have this problem of mine which i dont know how to solve. therefor i use this 
>great mailing list.
>
> Lets say i have a URL that looks something like below. This URL was generated from a 
>program that starts netscape with this adress. This adress is of course wrong.
>
> http://adam:9000//usr/local/test/test.html
>
> I want to change it so it looks like below with simply starting another scripts that 
>modifies the HTTP_REFERER so it adds the full computer name to the adress window.
>
> I asked this one before but nobody answered. If it isnt possible to be done i can 
>understand it but i atleast wants to know if it is possible. To do it.
>
> http://adam.artwork.com:9000//user/local/test/test.html
>
> Anyone got any tips for me on how to do this?
> Please help me with this.
>

I don't quite understand your question. It looks you have a program that generates the 
wrong URL, in which case it won't reach a page you want to go to. If the server in
the URL is wrong, there's nothing you can do to fix it the problem using PHP. If the 
URL that is generated is to a server you have control over, you can just do a
redirect to the correct address (and you don't need PHP to do this).

Also, you can *read*  $HTTP_REFERER to find out which page linked to the PHP script -- 
so setting it is not meaningful.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to