Author |
Message |
keyo
Junior WebHelper
Joined: 14 Jun 2002
Posts: 4
|
Posted:
Fri Jun 14, 2002 11:13 pm (21 years, 10 months ago) |
|
hi
im one of those who paid for an f2s account in order to keep my free one. anyways, i have a phorum (www.irishhiphop.f2s.com/forum) going since last july but for the last few weeks the ip addresses of the users are not showing...
im wondering has anyone else running phorum on an f2s account have the same problem and/or if anyone has any suggestions how to remedy it?
could it be due to a change in the php version used by f2s?
many thanks |
|
|
|
|
Ben
Senior WebHelper
Joined: 08 Jan 2002
Posts: 431
Location: Liverpool - UK
|
Posted:
Fri Jun 14, 2002 11:21 pm (21 years, 10 months ago) |
|
Hmm download the env script from this site and run that and see what variable gives the IP. It used to be HTTP_X_FORWARDED_FOR but they may have changed something? |
________________________________ Ben Scott
Red and White Kop |
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Fri Jun 14, 2002 11:38 pm (21 years, 10 months ago) |
|
keyo wrote: | hi
im one of those who paid for an f2s account in order to keep my free one. anyways, i have a phorum (www.irishhiphop.f2s.com/forum) going since last july but for the last few weeks the ip addresses of the users are not showing...
im wondering has anyone else running phorum on an f2s account have the same problem and/or if anyone has any suggestions how to remedy it?
could it be due to a change in the php version used by f2s?
many thanks |
Follow Bens advice, also I thought I would point out PHP on that server has been upgraded to 4.1.2 on 16th of May according to our records, at the same time apache was upgraded to 1.3.24 if it's any help........ |
|
|
|
|
keyo
Junior WebHelper
Joined: 14 Jun 2002
Posts: 4
|
Posted:
Sat Jun 15, 2002 12:42 am (21 years, 10 months ago) |
|
thanks for the speedy replies!
ill look into both those suggestions, i cant seem to find the env script in the scripts section,where should i check for that?
thanks! |
|
|
|
|
Ben
Senior WebHelper
Joined: 08 Jan 2002
Posts: 431
Location: Liverpool - UK
|
Posted:
Sat Jun 15, 2002 4:13 pm (21 years, 10 months ago) |
|
Hmm doesnt actually seem to be available in the scripts section
Just create a txt file with the following
Quote: | #!/usr/bin/perl
# Print content-type for HTTP/1.0 compatibility
print "Content-type: text/html\n\n";
# Print title and initial heading
print "<Head><Title>Environment</Title></Head>\n";
print "<Body><H1>List of all Environmental Variables</H1><HR>\n";
# Sort and print all environmental variables
foreach $key (sort keys(%ENV)) {print "$key = $ENV{$key}<br>\n";}
# Resolve REMOTE_HOST into name
$ip_address = $ENV{'REMOTE_ADDR'};
@numbers = split(/\./, $ip_address);
$ip_number = pack("C4", @numbers);
($name) = (gethostbyaddr($ip_number, 2))[0];
if (defined $name) {print "<HR>REMOTE_HOST resolves to: $name";}
exit; |
and save it as env.cgi and upload and call it in your browser |
________________________________ Ben Scott
Red and White Kop |
|
|
|
keyo
Junior WebHelper
Joined: 14 Jun 2002
Posts: 4
|
Posted:
Tue Jun 25, 2002 11:09 am (21 years, 10 months ago) |
|
hi
thanks for the info
i tried out the script, i dont see HTTP_X_FORWARDED_FOR
but i have REMOTE_ADDR = 136.201.27.206
and at the end of the page REMOTE_HOST resolves to: imedia-17.csis.ul.ie
, which is the one i should use?
thanks |
|
|
|
|
Ben
Senior WebHelper
Joined: 08 Jan 2002
Posts: 431
Location: Liverpool - UK
|
Posted:
Tue Jun 25, 2002 4:44 pm (21 years, 10 months ago) |
|
Seems they have got rid of the squid caches then....
If you look at your code and find where it logs the IP you should be able to switch it to use remote_host |
________________________________ Ben Scott
Red and White Kop |
|
|
|
keyo
Junior WebHelper
Joined: 14 Jun 2002
Posts: 4
|
Posted:
Tue Jun 25, 2002 7:24 pm (21 years, 10 months ago) |
|
YES!!
i tried both remote_addr and remote_host, turned out remote_addr was the one that worked, thanks for helping me get this worked out folks!
cheers! |
|
|
|
|
|
Page generation time: 0.141373 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme