ip loggs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

BenCollo
Forum Newbie
Posts: 10
Joined: Wed Sep 10, 2003 9:24 am

ip loggs

Post by BenCollo »

could sume1 tell me if it is possible 4 wen sume1 logs onto ya site it loggs there ip pass and name and if possible how?[/b]
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

what script(s) have you got at the moment?

could you show us?

Read this too before posting back viewtopic.php?t=8815

Mark
BenCollo
Forum Newbie
Posts: 10
Joined: Wed Sep 10, 2003 9:24 am

Post by BenCollo »

ok ive red it could u now plese help me
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Bech100 wrote:what script(s) have you got at the moment?

could you show us?
Im trying to help, but it would be easier if you answered my questions.
BenCollo
Forum Newbie
Posts: 10
Joined: Wed Sep 10, 2003 9:24 am

Post by BenCollo »

i dont have n e scripts wa 1ns i need
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

okay, people aren't gonna do your homework for you.

Find some login scripts (try http://www.hotscripts.com) and have a bash yourself. If you run into difficulties, post back here, then we can try and help you.

People are more likely to help if you tried, even if you miserably failed.

Mark
jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

BenCollo wrote:i dont have n e scripts wa 1ns i need
Jeez! If you are going to post in english, at least make it legible!

OK, look at the variable $REMOTE_ADDR which is the ip of the user. As for 'pass' and 'name' assuming you have them, log to where? File? Database? Ozone? Come on! Get a clue!
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

it would also help to drop the shorts like wen and sum1.

reason: not everyone on these boards knows english. especialy if you mispell the short, they wont necessarily pick up what you want., and may ignore you.

i'm fluent in english, and even i'm not sure what you mean by
wa 1ns
i know the rest is "i don't have any scripts" and "i need"
1ns makes no sense. if you mean ones, then why not 1s? it's like spelling out hiv and tagging an extra virus on the end of it there's no point to using the short if you're still spelling out the word


not just that, when you start using longer posts, seeing the script kiddie style of typing makes it annoying to read, at best.

and i don't beleive you read it... if you did, think about these points again:
  1. Start Here: http://www.catb.org/~esr/faqs/smart-questions.html
  2. Try a search first - Google, the PHP manual, the MySQL manual, Phuse and this forum are all good resources
  3. Write your question carefully, think about what you need to achieve and exactly what help you are looking for. (this applies to being able to get the information across to people in different countries too... some may not know english, or may have their browser set to translate... can it translate sum1?)
  4. Don't just post - 'This doesn't work' - tell us exactly what doesn't work and make sure to include any error messages you're getting.
the number of scripts you need to have depends on how many pages you want to make. some people will through many things into one page. like say all the functions they need for a site, then call that via includes to accomplish what needs to be accomplished on a particular page
BenCollo
Forum Newbie
Posts: 10
Joined: Wed Sep 10, 2003 9:24 am

Post by BenCollo »

lol looker m8 ill spell how i plz ok <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> all to do wid u all i wanted was a lill help coz i dont have a clue i just started today so <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> chill out gowd sume people r just pathetic wineing how people spell if u no wa it means who givs a fuk
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

BenCollo wrote:... if u no wa it means who givs a fuk
Thats the whole point, not everyone knows what is means. :roll:

You've just started today? Okay, so your gonna learn a lot by getting us to do the work for you. Use google and the site i mentioned before to find a script that does roughly what you want and play around with it.

When you run into problems, thats when you post here.

Mark
BenCollo
Forum Newbie
Posts: 10
Joined: Wed Sep 10, 2003 9:24 am

Post by BenCollo »

yes ive allready dun thaand it messed up and summit went wrong wouldint show page or our so me bro's m8 fixed it
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Basically if you want help you need to readjust your attitude, write in English and don't swear at forum members.

The basic message is - if people can't read your posts they can't help you, so continue using '133t txt speak' and you'll find your problem does not get solved.

Save that sort of abbreviated writing for your mobile phone and write your question in English. Just because you understand gobbledygook doesn't mean anyone else does, or wants to bother trying to translate it.

Mac
Last edited by twigletmac on Wed Sep 10, 2003 10:23 am, edited 1 time in total.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Re: ip loggs

Post by Nay »

BenCollo wrote:could sume1 tell me if it is possible 4 wen sume1 logs onto ya site it loggs there ip pass and name and if possible how?[/b]
yeah, it's possible. i think i'm nice enough to give you some info about ip logging since i've had my experiance. anyhow:

get ip with getenv['REMOTE_ADDR'];
then write it into an sql table or so.

well, that's the basic idea of it. and if you've just started learning php for the first time, i recommend you learn more first before doing this script.

-Nay

and ps: be professional enough to write formally, or at least with correct spelling. you don't have to be writing like shakesphere. lol, shakesphere is even harder for me to understand.
jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

BenCollo wrote:lol looker m8 ill spell how i plz ok f**k all to do wid u all i wanted was a lill help coz i dont have a clue i just started today so f**king chill out gowd sume people r just pathetic wineing how people spell if u no wa it means who givs a fuk
I think the point was, alot of us don't know what it means. I started you on some help, so YOU chill out, dude, and get a clue.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

BenCollo wrote:yes ive allready dun thaand it messed up and summit went wrong wouldint show page or our so me bro's m8 fixed it
So why when i asked you what scripts you already had, you said you don't have any?

hmmmmm......
Post Reply