| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Comments:
<0> lol <1> =) <2> :( <2> friggin kick*** game :) <3> $this->loggedin returns true or false based on function checklogin (highlighted). i think theres an error in the function which i cant seem to find, it constantly returns false even when the session variables contain the right data. http://lilkid.pastebin.com/735742
<2> and using a language similiar to C if you wanted to program for it :| <1> lilkid: question #1: have you confirmed that it's executing the mysql query? <4> argh! in_array wont work for me on an array generated by file() <4> i am suspecting the line returns in the .txt file i'm reading <1> NSGN: in_array() expects the entire value, not just a portion of it <4> yeah, i understand that. i have a file with one word on each line. i use file() to read that into an array by line, then in array to check of a certain word exists <5> KimmoA: wierd i can't replicate it with /e now either, must have been a typo or something, sorry <4> my issue is that it never works how it should... :-/ <6> Hmm! <6> TML: It feels a little... ugly... with an entire function to simply do one other function call... <7> NSGN: It should work if you tackon "\n" and/or "\r\n" to your word... <1> KimmoA: It'd be even uglier via /e <6> callback can't be a built-in PHP function, of course? <2> i wonder what my world would have looked like if i was born 3 days later :| <1> KimmoA: Sure it could <4> richardlynch: ok...but what if it happens to be the last word in the doc, and thus isnt followed by a line return? <6> !! <6> TML: Then it's all good, I guess...
<1> KimmoA: If there was a built-in that did what you want <1> But there isn't. <6> Well... strip_tags? <1> KimmoA: That won't do what you want. <5> strip_tags() doesn't take arrays <7> NSGN: Perhaps you could use an || with and without the "\n" -- Or you could do array_walk <6> Gleh. <1> KimmoA: You don't want to strip_tags() the array, you want to strip_tags() one piece of it <4> yeah, i might have to do an array walk to strip those returns <6> Yeah... I realize that now. <4> am i even going about this the right way? whats the nicest way to store an array in a .txt file? <1> NSGN: Why would you store an array in a .txt file? <7> NSGN: I wouldn't array_walk to strip the returns -- At that point, you might as well just array_walk to test if trim($x) == $needle <4> ah <8> TML: I got this book today: http://www.amazon.com/gp/product/1843401886/002-2575229-0190450?v=glance&n=283155 am leaning in that direction... Well... My art is :) <4> TML: because i dont wanna store it in a db.. <1> NSGN: Why? <1> Stormchaser: nice <4> because i'm making one simple little script and dont really have the practical option to have it use a DB
Return to
#php or Go to some related
logs:
debian add curl ettercap invalid configuration mdadm reactivate failed pam_keyring deb couldn't find/create .reiserfs_priv #gimp #ubuntu vmware 5 gentoo c headers address space size isp116 usb new_from_fd start_SSL
|
|