#php
25 October 2007
Total 56 pages. You are browsing page 1/56.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Thu Oct 25 00:00:45 2007
00:01 <****> Hey ^_^
00:01 <****> i'm trying to modify my forum software
00:01 <****> and also use some of the commands the forum uses
00:02 <****> so i tried to require_once some classes and whatnot
00:02 <****> but all my classes require other files in this format: require_once(WCF_DIR.'lib/system/auth/UserAuth.class.php');
00:02 <****> now, i know WCF_DIR. should be ../wcf/
00:03 <****> but i don't know how to tell the php that, so when it comes across WCF_DIR it reads it as ../wcf/
00:03 <****> Dave, WCF_DIR is a constant
00:03 <****> Anyone got any ideas?
00:03 <****> so look up constants
00:03 <****> Dave, define('WCF_DIR', '../wcf/');
00:03 <****> or HarryR can just tell you
00:03 <****> w/e
00:03 <****> HarryR: thanks for your help
00:03 <****> :)
00:03 <****> cyth: thank you for trying to help *me*
00:03 <****> :]
00:04 <****> Couldn't have gotten to this point with out people like both of you ;)
00:04 <****> he *did* help you
00:04 <****> hi, how to cut all line break characters out of a string?
00:04 <****> how can i do a check if a name in both forms matches a set of fields in an sql table or not?
00:04 <****> http://38.113.64.130/gf/register/
00:04 <****> muahahaha! it works! :D
00:04 <****> <3 thank you
00:10 <****> is there PHP under windows?
00:11 <****> yes
00:11 <****> :)
00:11 <****> in there a life after death
00:11 <****> google "xampp"
00:11 <****> only if you wish upon a star
00:13 <****> Hmm.
00:13 <****> Should I free variables in php when I don't need them anymore?
00:13 <****> harryr, you don't happend to hang at sitepoint do you?
00:14 <****> in a perfect world you should
00:14 <****> stupidknight, yeah I do :D
00:14 <****> then yay I recognize you!
00:14 <****> :D
00:14 <****> :S
00:14 <****> small world :)
00:14 <****> indeed...
00:15 <****> so about that testicle problem you where talking about last post...
00:15 <****> krustofski, Was that directed towards me?
00:15 <****> lol
00:15 <****> heh, sorry .. I couldn't resist.
00:15 <****> I rarely seem to meet people from sitepoint, and i've only met one person in-person so far
00:15 <****> Who was it?
00:15 <****> Is there function to get rid of new lines?
00:15 <****> and merge text as one line
00:15 <****> nl2null :P ?
00:16 <****> could someone just write in words what this function says: function tf($v) { return $v ? "T" : "F"; }
00:16 <****> str_replace() ?
00:16 <****> hi
00:16 <****> @ Aleksey
00:16 <****> stupidknight, uh hrmm I cant remember his sitepoint name now, but he's the guy that makes simpletest
00:16 <****> ah, lastcraft
00:16 <****> I was wondering, is there any opensource stress test that I can use to test my website/server ?
00:16 <****> is it?..
00:16 <****> yah that's it
00:17 <****> ab
00:17 <****> logik-bomb, apache bench
00:17 <****> :) cool, and you're the author of that book I bought :)
00:17 <****> I am?
00:17 <****> Hi, I'm starting to use php in CLI mode. I run './scriptname.php' to execute it, but how do I keep it running? Currently I'm running only an echo statement, but once it returns that, it quits.
00:17 <****> HarryR, thanks mate
00:17 <****> ah ... you're not, oh well, I recognize you from the forums anyway.
00:17 <****> ehe
00:18 <****> PThomas_, Of course it will quit, what do you want it to do?
00:18 <****> i'm looking for a calendar to use on a a site where every user has their own calendar....can anyone point me towards one?
00:18 <****> i'll have a book out one day, just not sure what to write about
00:18 <****> Crippy-Boy: I wan't it to quit if the user types quit :D
00:18 <****> Is there a way I can check a user's resolution and then set the website to display accordingly
00:18 <****> where did lastcraft disappear anyway?
00:18 <****> bz029: javascript will have your answer
00:18 <****> PThomas_, Then you'd have to read input and wait for the user to type quit or an interrupt.
00:19 <****> stupidknight, not sure, I think he's just settling down a bit
00:19 <****> I'm trying to strip out line breaks in a string. In vim they appear as "^M", but I can't seem to match them with preg_replace. Anyone know what the appropriate pattern would be to match that? thanks.
00:19 <****> HarryR: too bad.
00:19 <****> HarryR: And what's that guys name who wrote: PHP 5 OBJECTS, PATTERNS, AND PRACTICE
00:19 <****> Crippy-Boy: Well, I had them enter their name, and it returns it, but then closes.
00:19 <****> oops, caps.
00:19 <****> stupidknight, um, no idea
00:20 <****> Bah, never mind then :)
00:20 <****> I haven't bought any PHP books for _ages_ :\
00:20 <****> last one was some random wrox workshop one
00:20 <****> So, do I have to (or is it best to) unset my variables when I don't need them? (I'm kinda new to php :) )
00:21 <****> hehe, Last book I bought was C++ one. I was 11 and wanted to prove my friends dad wrong, and I did :)
00:21 <****> roue: try replacing both \n and \r - that might work, but that's just a guess since they're line breaks =P
00:21 <****> thanks RockerMONO
00:21 <****> \r is carrige return right?
00:21 <****> yes
00:21 <****> profounded_: yea
00:22 <****> roue: my guess is it's either \n or \r\n
00:24 <****> I'm borrd.
00:24 <****> bored
00:24 <****> me too
00:25 <****> and PHP OO is a pain in the arse :)
00:25 <****> since i stuck require_once(WCF_DIR.'lib/system/WCF.class.php'); into my code...
00:26 <****> i get the error Fatal error: PHP notice in file /opt/lampp/htdocs/forum/test.php (45): Undefined index: firstchar
00:26 <****> why do i have to define it now?
Total 56 pages. You are browsing page 1/56.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
