08-22-2005, 07:15 AM
· #1 Senior Member
Location: Belfast
Join Date: Aug 2005
Posts: 1,196
NP$: 5.85 (
Donate )
Show IP, Browser etc...?
08-22-2005, 07:25 AM
· #2 Template Designer
Name: Ahmed
Location: Somewhere on earth!
Join Date: May 2005
Posts: 3,528
NP$: 17.30 (
Donate )
It is very basic to show the visitor's IP address. Simply use something like:
Quote:
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
As for browser, resolution I believe it can be done easily with Javascript.
I think it uses something like screen.width and screen.height
08-22-2005, 07:37 AM
· #3 So easy a Domainer can ..
Join Date: Mar 2004
Posts: 9,276
NP$: 3464.70 (
Donate )
__________________
I still Remember when "Money in the Bank " was a Good Thing ! Feed the Starving Bank CEO's and Stock Brokers ... for Only 8,000$ per day you too can keep one of them in their Lavish Lifestyle
08-22-2005, 11:35 AM
· #4 Senior Member
Location: Belfast
Join Date: Aug 2005
Posts: 1,196
NP$: 5.85 (
Donate )
Is there any scripts that I can buy?
08-22-2005, 11:37 AM
· #5 So easy a Domainer can ..
Join Date: Mar 2004
Posts: 9,276
NP$: 3464.70 (
Donate )
Why buy it if it's free ???
__________________
I still Remember when "Money in the Bank " was a Good Thing ! Feed the Starving Bank CEO's and Stock Brokers ... for Only 8,000$ per day you too can keep one of them in their Lavish Lifestyle
08-22-2005, 11:43 AM
· #6 Pro Coder & Designer
Name: Karim
Location: Netherlands
Join Date: Apr 2005
Posts: 962
NP$: 62.00 (
Donate )
Originally Posted by all4cost Why buy it if it's free ???
And when you can code it yourself in just 5 minutes with a nice layout :P
08-22-2005, 01:55 PM
· #7 Senior Member
Location: Belfast
Join Date: Aug 2005
Posts: 1,196
NP$: 5.85 (
Donate )
I can't find the code for everything I need....
08-22-2005, 07:20 PM
· #8 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,240
NP$: 385.00 (
Donate )
http://www.namepros.com/showpost.ph...327&postcount=3
Browser and IP:
PHP Code:
<?php
echo "Browser: " . $_SERVER [ "HTTP_USER_AGENT" ] . "<br />" ;
echo "Your IP is: " . $_SERVER [ "REMOTE_ADDR" ];
?>
Screen resolution.
HTML Code:
<script type='text/javascript'>
w = screen.width;
h = screen.height;
document.write('The resolution is: ', w, '×', h + "<br> ");
</script>
08-23-2005, 01:35 AM
· #9 NamePros Regular
Location: Canada
Join Date: Jun 2005
Posts: 805
NP$: 216.35 (
Donate )
Anyone care to share their code to show the country of the ip along with showing the country flag?
08-23-2005, 01:42 AM
· #10 Template Designer
Name: Ahmed
Location: Somewhere on earth!
Join Date: May 2005
Posts: 3,528
NP$: 17.30 (
Donate )
You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products:
http://www.maxmind.com/
I think there's a free database included for IP-to-Country only.
08-23-2005, 01:50 AM
· #11 NamePros Regular
Location: Canada
Join Date: Jun 2005
Posts: 805
NP$: 216.35 (
Donate )
Originally Posted by Designporte You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products:
http://www.maxmind.com/
I think there's a free database included for IP-to-Country only.
Hmmm... interesting I'll check it out later on. Thanks for the link.
I'm also looking for a script/code that will detect if someone is using a proxy and let them know if it's a good one or not. Hope that makes sense.
08-23-2005, 10:04 AM
· #12 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,240
NP$: 385.00 (
Donate )
Originally Posted by Designporte You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products:
http://www.maxmind.com/
I think there's a free database included for IP-to-Country only.
Large database is right. I downloaded a database (from another site) The database alone will be around 4-5 MB's
08-23-2005, 03:45 PM
· #13 NamePros Staff
Name: Peter
Location: Scotland
Join Date: Nov 2003
Posts: 4,181
NP$: 2051.15 (
Donate )
4-5 MB I would have thought gigs myself.
Just 1 note alot of those databases are out of date and do not always show the correct location..
08-23-2005, 04:30 PM
· #14 Pro Coder & Designer
Name: Karim
Location: Netherlands
Join Date: Apr 2005
Posts: 962
NP$: 62.00 (
Donate )
Originally Posted by SecondVersion Large database is right. I downloaded a database (from another site) The database alone will be around 4-5 MB's
i purchased the cities one its about 200mb worth of sql data :S :P
and still i am trying to upload it on my local server
08-23-2005, 06:04 PM
· #15 NamePros Regular
Join Date: Feb 2005
Posts: 352
NP$: 48.00 (
Donate )
08-23-2005, 07:49 PM
· #16 NamePros Regular
Join Date: Aug 2005
Posts: 199
NP$: 50.00 (
Donate )
does those show real ips or proxies?
08-23-2005, 09:21 PM
· #17 NamePros Regular
Join Date: Mar 2005
Posts: 847
NP$: 29.00 (
Donate )
lol, if you have SSH (SHELL) Access from your HOST you can easily upload large databases to servers, I once uploaded 1.2 GB and it didn't take much of a time
it felt like i uploaded a 10 MB file to the server, but not all host gives out SHELL access to users. you can try to talk over your host and give them a very good reason and maybe they will give you SSH access.
09-01-2005, 07:09 PM
· #18 DNOA Member
Location: USA
Join Date: Jul 2004
Posts: 1,135
NP$: 178.10 (
Donate )
Once you have the sql file to the server how do import it to the database?
09-01-2005, 07:57 PM
· #19 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,240
NP$: 385.00 (
Donate )
Originally Posted by jdk Once you have the sql file to the server how do import it to the database?
? ... Just go into phpMyAdmin, select your database. And run the SQl file. If this is what you're talking about.
-Eric
09-05-2005, 12:11 AM
· #20 Senior Member
Name: Bharat Balegere
Location: Bangalore
Join Date: Jul 2005
Posts: 1,222
NP$: 282.60 (
Donate )
Nice Links
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off