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



Comments:

<0> Hey Jymmm
<0> Watch the game today?
<1> lig Hey sweety... Nah, never been much into team sports. Shooting and camping are more my thing
<1> lig :Well, shooting is more my shrink that anything else
<0> :D - not really into guns - though I was considered a decent shot in the Navy
<1> lig: Yeah, I can go thru 300 rounds and walk out of the range all calm like =)
<0> hehe - they used to laugh at me - I am right handed but my left eye is the dominate eye.
<1> lig : why is that funny?
<1> lig Im left handed, Right eye dominant
<0> when sighting - I would close my left eye on accident... had to use a patch
<1> lig oh, yeah that is funny =) HAVING to wear the patch that is
<0> hehe
<1> lig we all have our quirks
<0> I just have a few more then most... I tend to think it makes me an 'Original' <- Capital and Quotes intended :D



<1> lig "Just a sea of freaks out there"
<0> and I prefer the term geek
<1> geek freak
<1> freaky geek
<0> damn straight
<1> freaky geeky liggy
<0> slightly offcenter and lovin it
<2> kuja, i noticed since i switched to flat panel LCD's i havent been having as many probs reading off screen wonder wh ythat is
<3> Just kidding :) <3
<0> :D
<3> Jymmm: I don't think I've ever told you this, but... I'm gangster.
<0> gangsta?
<1> Temen prisoners that attack the battleship escaped
<3> fasho!
<1> Yemen prisoners that attack the battleship escaped
<3> Jymmm: Go for Semen next :P
<4> Guys, I have an ***ociative array, $menu, which has keys such as '/admin', '/admin/options', '/admin/users', and I want to be able to match, say, '/admin/options' to '/admin/options?action=update' ... I've tried foreaching against each entry in $menu but obviously, /admin matches first :) Anyone see a bleedingly obvious way that I'm just missing here?
<0> strlen?
<4> ?
<4> ah strlen, the magical length discovery function that solves all problems!
<4> no, not in this case ;)
<5> hi, does mysql_close() function closes the persistent connections also?
<0> substr on the strpos of the ? and maybe compare...
<6> what's a good, free, PHP based forum, but not phpBB?
<0> fudforum
<7> Sort your array by len descending first?
<6> thankyou
<4> MDCore: havn't tried that
<4> er, whats the best way to sort
<4> so many sort functions in php :)
<7> You've got me. Not near the docs.
<4> nah I'm going about this the wrong way.
<7> Ok?
<4> yeah. I should look for a ?
<4> and ignore it and everything after it
<7> That is better
<4> yup
<4> sometimes it takes explaining something to someone before you realise what you're trying to do is arse about face.
<7> Totally!
<8> anyone know of an easy way to calculate holidays in a given month?
<9> perhaps make an array of all the holidays and check against it?
<10> I have some text in a variable, is there an easy way of adding either 4 spaces, or 1 tab to the beginning of each line?
<11> hypothetical: should you use mysql_real_escape_string on a piece of data you took out of the database with a query, and now plan on reinserting?
<4> slide: $string .= "\t", might work...
<1> slide: $str .= ' ';
<10> but the string has multiple lines
<11> need to write a function probably
<11> i have a function in my blog that takes \n and replaces them with <br /> but NO \n
<11> well i'm not exactly even sure what your problem is but i think you will hvae to write a function
<11> hahahaha
<10> hehe
<4> slide: split the string into an array, then foreach over the array
<12> is there a way to grab a defined value within a "" in php?
<4> $line_array = split("\n", $lines);



<13> is there a good tutorial for learning to do development with mysql databases?
<12> define ("C_ONSTANT",123); $str = "STRING WITH C_ONSTANT IN IT" ; ?
<14> Prot: i don't understand
<12> define ("THE_ONSTANT",123);
<12> define ("THE_CONSTANT",123);
<12> so we got a constant right
<4> Prot: Use printf maybe: printf ("This is my define: %s", C_ONSTANT);
<12> now i'm creating a string $str = " blah blah blah ";
<12> and i want the constant in it
<12> yea i know, just looking for a way similar to variables
<4> or sprintf
<12> $str = "blah blah $var blah";
<4> sprintf returns the string
<12> that kinda thing, real easy
<14> i use $str = "asd asd " . CONSTANT . " asd asd";
<12> ok,
<12> just wondering if there was a similar way
<4> deadroot's way is easier actually yeah.
<14> i think PHP may also interpret "asd CONSTANT asd", i'm not sure
<15> Helo everybody :D i'm back again!
<15> Lig are you here?
<16> how do i add hyper links in php?
<15> Can anyone help me with rewriting an IMG tag with preg_replace?..
<15> (in what condition Jita?)
<15> Creating a simple hyper link can be like this: $newLink = "<a href=\"$link\">$content</a>";
<14> Ricardo_: what's the problem?
<16> Ricardo_: yeah thanx
<15> Where you can set $link = "http://www.whatever.com";; and $content = "what ever";
<15> Ok i need to rewrite an IMG tag.. and drop all attributes exapt ALT and SRC!... result should be something like this: <img alt="..." src="..." />
<14> ic. what's your current regexp?
<8> ezrafree - arent some holidays floating?
<17> has anyone implemented cgi_buffer successfully with PHP 5 ?
<17> Or does anyone know of problems with cgi_buffer library and PHP 5? ;)
<15> preg_replace("/<img(.*)alt=\"(.*)\"(.*)src=\"(.*)\"(.*)/>","<img alt="..." src="..." />",$content); ... dont know :-S
<14> Ricardo_: i'll need to do some tests here
<15> Ok... can i help anyone else with a PHP problem in the mean time?
<14> Ricardo_: try this: echo preg_replace('/<img.*(alt="[^"]*"|src="[^"]*").*(alt="[^"]*"|src="[^"]*").*\/>/', '<img \\1 \\2 />', $a);
<15> Testing...
<15> Nope .. it deletes allot ... a little to much :-S
<14> erm... what do you mean too much?
<15> The entire img tag.
<12> is there a more efficient way to find how many words exist in a page than preg_match or strpos ?
<12> i need the count only
<14> Prot: www.php.net/split the page with whitespace and count how many elements there are?
<12> i'm sorry, i mean a specific word
<12> finding how many times it appears
<14> Ricardo_: it works for me. can i see the string you feed it?
<15> a bit of a long string ... its HTML...
<15> A full HTML page.
<14> oh
<14> Ricardo_: echo preg_replace('/<img.*?(alt="[^"]*"|src="[^"]*").*?(alt="[^"]*"|src="[^"]*").*?\/>/', '<img \\1 \\2 />', $a);
<14> if the page was developed consistently, that should do the trick
<15> Well ... let me see one second.
<18> people set alt first?
<18> usually goes after src
<18> hehe
<14> Anti-Sydney: usually, but not necessarily
<19> hi all
<19> how do you put multiline text from a db into a textarea?
<14> <textarea>$value</textarea>
<15> The [^"] indicated that i've is written alt="" then continue?
<20> does anyone know what the proper syntax is for $_POST['myval[0-10]'] is?
<20> i want 'myval' to be able to have a form of 'myval1-10' and so on
<14> Ricardo_: the "[^"]" is to capture anything within the two double quotes
<19> deadroot - i'm using js to add a textnode, but when there's a newline in the db, the textarea refuses to show it
<14> Ricardo_: the [^"] accepts anything but a double quote
<14> lra_: you could use php's nl2br function
<14> ...
<19> deadroot - i've tried nl2br - no joy
<19> nor does wordwrap
<14> :-/ even if the line endings are \r\n ?
<20> does anyone know what the proper syntax is for $_POST['myval[0-10]'] is?
<20> i want 'myval' to be able to have a form of 'myval1-10' and so on


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#debian
#ubuntu
madona+dekstop
apt-get libmikmod
rror: 'Access denied for user 'root'@'localhost' (using password: NO)'
canon lide 70 ubuntu
#web
Driver sacer
cp -r /root/.spamassassin
dapper ibook standby



Home  |  disclaimer  |  contact  |  submit quotes