@# 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



Comments:

<0> jesus christ.
<1> just a tip, before you write long-running code that will dissapoint you if it fails; create a small set of test tables and test it first :-P
<0> just a tip, GO **** YOURSELF
<0> :P
<0> oh well :)
<0> it was a good productive-looking waste of today!



<0> this one is going much faster
<0> the problem with mine is that $u just kept building and building, i forgot to unset it
<0> how stupid am i :P
<0> 15 queries /sec or so
<2> hi Jstr
<3> how's it goin synapse
<1> hey Jstr
<3> sup pizza_milkshake
<0> heh.
<0> now i have a fun regex problem!
<1> let's hear it
<0> i have <a href="blap"> and i want to match 'blap' whenever it doesn't start with http:// or mailto:
<4> how can I make sessions autodestroy after like 1 hr
<0> the best i've got so far is #<a href="([^(http)]+)"#
<0> but that doesn't quite do it :P
<5> any1 got any suggestions on who to setup online cc verification for a site with?
<1> @session_set_cookie_params
<6> (PHP 4, PHP 5)
<6> void session_set_cookie_params ( int lifetime [, string path [, string domain [, bool secure]]] )
<6> Set the session cookie parameters
<6> http://www.php.net/session-set-cookie-params
<0> dj_sinrize: you just want verification and no transactions?



<5> transactions
<0> skipjack
<5> ok cool, thanks
<4> pizza_milkshake: if the visitor hav problems with cookies and dont use them.. do the session autodestroy when the visitor leaves my site?
<4> have*
<5> they provide an api u can link into ur site invisibly?
<0> of course
<5> marvellous :D
<5> tnx dude
<1> @php preg_match_all("/href=\"(?!(?:http|mailto):)(.*?)\"/","href=\"a\", href=\"http://b\"",$m) && print(str_replace("\n","",print_r($m,1)));
<6> Result: Array( [0] => Array ( [0] => href="a" ) [1] => Array ( [0] => a ))
<1> GlenneMannen: by default session cookies are destroyed when the browser is closed
<4> pizza_milkshake: ok thanks
<1> or you can set the timeout explicitly
<1> yup
<0> wow. i'm not even sure what half that does
<1> Sausage_: the magic is the (?!)
<0> yeah, that's what i haven't seen :P
<1> it's a negative forward ***ertion, or some silly name
<1> it's basically the only way to force a regex not to match on a series of chars
<1> (?!) == "not followed by"
<0> negative lookahed
<1> that's the one
<0> regex coach isn't liking it


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#allnitecafe
#worldchat
#kl
#allnitecafe
#allnitecafe
#allnitecafe
#chat-world
#allnitecafe
Fatal error: Call to undefined function: setrawcookie()
#allnitecafe



Home  |  disclaimer  |  contact  |  submit quotes