there is no such thing as a over browser IP javascript
i guess u did not get weekender's idea - he talked about a local php installation on your machine which updates a html page on your non-php webspace via ftp:
what they've done is have a local php script which detects your ip address and uploads that ip to the redirect webspace. Then use a batch file which runs on startup to execute the php script.
so your can upload a html page generated by your local script which can contain a link to your ip or a meta-redirect or a javascript redirect - just do not upload the txt-file that is used by the server script, but create and upload a little html page, e.g.:
<?php
/*
UPDATEIP.PHP
Gets current IP address and updates the server
*/
// The name should be your machine's name. If you use localhost it will return
// 127.0.0.1 which doesn't suit our needs. Replace "e;orange"e; by whatever network name your machine has.
$orange_ip = gethostbyname('orange');
$htmFile = "<html><head><title>Redirect</title></head><body>Please click here to visit my homepage: <a href=\"http://$orange_ip\">$orange_ip</a></body></html>";
// Next we create a file containing just the IP address we got before
$fp = fopen('index.html','w');
fputs($fp,$htmFile);
fclose($fp);
// Whatever we need to connect to the ftp server we set here
$myserver['ftp'] = 'ftp.yourdomain.net';
$myserver['user'] = 'yourusername';
$myserver['pass'] = 'yourpassword';
// Open the connection
$ftp = ftp_connect($myserver['ftp']);
$result = ftp_login($ftp, $myserver['user'], $myserver['pass']);
// If there is a connection, we send the file. If not, nothing happens.
// With little more effort we could notify someone if this fails
// The second parameter for ftp_put is the destination file. Change it to whatever is your case.
// As this file is to run at startup we echo nothing. It should run silently.
if ($result)
{
$upload = ftp_put($ftp, 'www/orange_ip', 'orange_ip', FTP_ASCII);
ftp_close($ftp);
}
?>
just replace the connection data and your hostname with the appropriate values for your machine.
hth