@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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 27 28 29 30 31 32 33 34



Comments:

<0> deadroot: sure, but see above
<1> Lateralus: i'm beyond months right now
<2> think they kicked that one down zircu
<3> zircu: I've heard about setor() but havn't been paying attention. Is it ||=?
<4> they mostly fall under #2, in your categorisation :)
<1> Lateralus: yeah or the 1000 other ways it has been suggested
<0> ruby has that same syntax
<3> So is deadroot, apparently.
<4> it would be extremely nice if sourceforge uses php6
<3> zircu: what's wrong with ||=? :p
<3> deadroot: why would it?
<0> ?
<4> broken apps
<3> eh?
<4> there are a number of projects still dependent on very old code
<3> zircu: I mean, I ***ume someone has proposed "||="



<4> what does ||= mean?
<0> deadroot: did you mean to say doesn't use php6?
<1> Lateralus: the requirement is it needs to be a recursive syntax
<3> deadroot: $var = $othervar||"paul";
<4> Deu***: what do you mean to say?
<5> is there a way to shorten this expression: if ($key != 'name' && $key != 'uid') ?
<6> Why does this not work? if (!preg_match('/([a-zA-Z0-9]*)/', trim($_POST['profile']))) { I am trying to see if the string is alphanumeris but that always returns false.
<4> Lateralus: that's nice! finally it's catching up to javascript!
<1> Lateralus: you can't do that without a E_NOTICE
<1> rixth: php.net/ctype_alnum
<7> i realize this isn't quite the place for this, but i don't know a better place... can someone recommend an email newsletter script, preferrably open-source?
<1> thepacman: you dont want a script you want a solution
<7> yeah.
<7> i actually have an existing one, but having issues with it... so i'm looking to replace it.
<1> just go to the basics and use majordomo and go from there
<1> i wouldn't use a php one
<4> what php one? the newsletter problem?
<1> i belong to several newletters and about 95% of them dont have there own solution unless it is related specifically to there application, like 'show me <fill critera> results every week
<1> it is just a basic mailing list
<8> mailman is the way to go
<8> majordomo still had some pretty big security issues, last I checked.
<7> i have absolutely no reason to spend the time on a custom solution.
<1> yeah, mailmain is the new generation, i'm pretty sure google would hint that
<7> hrm
<7> mainman?
<8> mailman
<1> mail*
<7> mailman, sorry... i'm getting tired.
<9> hey
<1> very easy to manage
<9> does anyone know of a php function that will cleanup a string that contains html code?
<6> Why does this not work? if (!preg_match('/([a-zA-Z0-9]*)/', trim($_POST['profile']))) { I am trying to see if the string is alphanumeris but that always returns false.. The ctype stuff doesn't help me, as I eventually want to make the pattern match hypens, underscorces etc.
<10> how could I run a particular query a 1000 times?
<2> Woot! Time to go home. Monday is over
<6> endra, striptags
<9> cleaning up includes compressing it, etc
<1> rixth: i guess you have me on ignore
<2> later all
<1> night lig
<2> night darlin'
<3> deadroot: er, ($var ||= "asdf")
<7> i'll give mailman a shot... what does it use for a database?
<6> zircu, nope, but see I said the ctype stuff is not useful to me
<1> Lateralus: you still are on that thing
<9> rixth: I dont mean to get rid of the tags, but to compress them, so they are all on the least amount of lines
<3> zircu: Just correcting an incorrect example.
<3> zircu: don't know what I was thinking about before :)
<1> rixth: oh no? so you want a alpha numeric value validation but ctype_alnum doesn't work? explain..
<6> endra, you could just strip all tabs, newlines and carriage returns?
<6> zircu, no, I need to eventually allow support for hypens and underscrores
<9> yea but then indenting them correctly, etc
<1> rixth: so then dont say you need an alpha-nuermic condition
<1> rixth: and on top of that tell me that when I suggested it the first time
<1> rixth: so, now i wont help you with your regex 'problem'
<6> vhuren, for($i; $i < 1000; $i++) { mysql_query("SQL QUERY") } (the < may be wrong, I always get those mixed up)
<8> rixth: ([a-zA-Z0-9]*) doesn't match because trim($_POST['profile']) contains something that is outside the boundary defined in the regex. Not sure what the mystery is there.
<6> TML, so I need the caret and dollar sign?
<8> rixth: What? No.
<8> How did you get that?
<8> Are you just making random guesses?



<1> TML: he doesn't listen that is why
<8> rixth: trim($_POST['profile']) contains something that is not a-z, nor A-Z, nor 0-9.
<6> God you guys are elitist pricks. When you said boundary, I thought the start/end of the string....
<8> *shrug*
<1> :ditto:
<1> I wonder when 'elitist' compares to 'experienced'
<8> What he meant to say was "Please stop rubbing my nose in the fact that I don't know how to ask a question."
<11> i need to install php-json on windows can anyone help me
<8> nandan: Not here, no.
<1> nore here
<12> is there a way to tell if one date is "greater than" another?
<1> stevarino: in what context?
<8> stevarino: Depends. What format do you have the dates in?
<3> stealth: timestamp?
<13> stevarino: where are these dates comming from?
<12> yyyy-mm-dd
<13> mysql??
<12> no, strings
<8> stevarino: Easiest way is to break it up, p*** it to mktime(), and use >
<13> stevarino: did you make them as strings?
<12> Shai_Tan: no, they came that way from _POST :)
<1> stevarino: or use the db to compare the dates
<13> stealth: have strtotime() convert them to timestamps, then get medieval with them
<12> actually, i really only need to see if a date is less than 13 years ago... so i can just convert to a timestamp and compare ints... right?
<12> the 1950's and such are to be expected, but strtotime returns -1, so i'm safe with a simple comparison, right? :)
<4> if it was yyyy-mm-dd, you can just use '>' or '<', iianm. or strcmp
<8> Rhizome: You should be able to speak now.
<14> :)
<1> stevarino: it depends on the db, if you want to compare dates, you would be best off with using the databases' tools
<1> i had to pause on my reply beore the +o :)
<1> you took a while to find that mask :)
<8> I had to decide how I wanted to do it.
<8> Settled on "By name+ident, allow any session."
<8> As Rhizome is our first exemption, it was a decision we hadn't yet had to face. :)
<14> :P
<15> stupid isp
<16> i got a number of different dirs that i want to get the amount of images from how would i go about this its for a image gallery
<16> was thinking of storing the paths in a xml db along with a desc
<17> anybody here have "vista ready computer monitor"?
<1> JBdiGriz: I have a 'swamp ready computer montiort
<17> what is that
<1> viry: it depenends
<1> JBdiGriz: i guess not what you need
<16> so its possible then
<1> well, i could make an alta ready computer moniter' if you wanted instead
<18> how do i dump to a file
<18> i have a mail message that i want to dump into a file instead
<0> laxatives help sometimes
<18> $mail->send($emails);
<1> whoohoo: http://php.net/fopen
<18> i want $mail_data to get dumped to a file
<0> not even a slight chuckle about the laxative/dump thing.
<4> does php6's ICU stand for Intensive Care Unit? ;)
<1> Deu***: I totally missed that
<0> zircu: maybe my timing was off
<0> anyhoo zircu, just use file_put_contents
<0> unless you are on a ghetto version of php
<18> so fopen(./logs/logdump.txt)
<18> logdump is for your comment :)
<18> i think it is only appropriate it be named after that
<18> would that work deus, or do i need more stuff
<1> Deu***: I wouldn't even consider that
<18> i dont know what bool means
<1> whoohoo: yes or maby no
<1> mabey*
<18> i want to use a+
<18> where do i put that
<0> zircu: what? file_put_contents?
<1> whoohoo: in your editor
<13> or($header_it = new limititerator($arrayObj->getIterator(), 0, 4); $header_it->valid(); $header_it->next()){ echo $header_it->key(); } .... should this iterate 4 times?
<1> Deu***: yea, i'm ***uming you were suggesting for the 'how to put contents into a flat file' issue
<18> so $mail_date = fopen("/logs/logdump.txt), a+)
<0> zircu: yeah, what's wrong with that?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

grub freq 60
size array win32asm
#web
#suse
rezise partition+fedora
#suse
could not find mkinitramfs-kpkg
#ai
#php
#debian



Home  |  disclaimer  |  contact  |  submit quotes