|
-
Mar 30th, 2002, 10:49 AM
#1
Thread Starter
Addicted Member
ip address of visiting user
Hi,
I need to make something that displays the user ip address as a result (to be included into a site) and if possible writes the ip and hostname to a file or database.
I have totally no experience with it, so if you want to help me, please treat me as a newbie with PHP...
And no, i'm not gonna use ASP because i want an apache server instead of micro$oft stuff
thanks in advance
The main VB routine in Windows XP (The don't admit it, they wrote it in VB)
[vbcode]
Public Sub Windows_Load()
a = 1
b = 2
if not a + b = 2 then
goto crash
end if
goto crash
End Sub
[/vbcode]
-
Mar 30th, 2002, 12:43 PM
#2
$ip = $REMOTE_ADDR;
$host = $REMOTE_HOST;
and I suggest reading the php manual if you don't know how to connect to the database.
-
Mar 31st, 2002, 04:50 AM
#3
Thread Starter
Addicted Member
tnx...
I will read it (or at least the things i need to know)
The main VB routine in Windows XP (The don't admit it, they wrote it in VB)
[vbcode]
Public Sub Windows_Load()
a = 1
b = 2
if not a + b = 2 then
goto crash
end if
goto crash
End Sub
[/vbcode]
-
Mar 31st, 2002, 07:09 AM
#4
-
Mar 31st, 2002, 09:20 AM
#5
Thread Starter
Addicted Member
Originally posted by ubunreal69
hmmmm, i like this "Icheb" guy, refuses to use ASP, likes PHP, he has more sense than any other person on this forum !!!! i like
LOL !!
thanx...
The main VB routine in Windows XP (The don't admit it, they wrote it in VB)
[vbcode]
Public Sub Windows_Load()
a = 1
b = 2
if not a + b = 2 then
goto crash
end if
goto crash
End Sub
[/vbcode]
-
Apr 1st, 2002, 05:15 PM
#6
Addicted Member
PHP manual
I don't have one of thoes. Got any tutorials? PHP.com doesnt explain much. I too would like to write IP adresses to a (text) file.
-
Apr 1st, 2002, 05:23 PM
#7
http://www.php.net/manual/en/
and then you can get the manual as it is free.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|