Very new to php. Need line break help.
Posted: Sun Nov 22, 2009 6:18 pm
Hello all!
So, i have been messing around with php for a year or now but not in a serious manner just editing things in cms's. Well i would like to start learning so i can starting doing some real stuff. So here's where i'm stuck:
I made small script where when a user logs onto the site, it shows their ip address. It then logs their ip address into a .txt file. But there are no line breaks between the ip addresses. I searched around and found many solutions, but there examples were confusing.
Thanks a lot ya guys!
So, i have been messing around with php for a year or now but not in a serious manner just editing things in cms's. Well i would like to start learning so i can starting doing some real stuff. So here's where i'm stuck:
I made small script where when a user logs onto the site, it shows their ip address. It then logs their ip address into a .txt file. But there are no line breaks between the ip addresses. I searched around and found many solutions, but there examples were confusing.
Code: Select all
fputs($fp, $rip); // Need the line break to be before the $rip.