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



Comments:

<0> I do have some Jolt Cola, if you life.
<1> lol
<2> erg... my cl***es need to be rewritten
<0> Never had RC COla, couldn't say.
<1> FlamingCows: I'd *life* some Jolt cola, please :)
<0> I don't think you have the right verb, there.
<3> how do I make a regular expression that replaces [b]()[/b] with <b>\\1</b> and allows the use of any characters in the () ?
<1> FlamingCows: Oh, just copiying your verb :)
<3> eregi_replace("\[b\]([]{0,})\[/b\]", "<b>\\1</b>", $text) is what I have so far
<1> -i
<0> Stormchaser: Ah, I didn't catch that.
<1> hehe :)
<1> nowec: Eeek! Don't use eregi
<3> Stormchaser, ohh... how come?
<0> nowec: Chnage eregi to preg, chnage the double quotes to single quotes, add a slash to the start and a '/i' to the end, and chnage '([]{0,})' to '(.+?)'.



<0> s/chnage/change/
<0> I always misspell that word.
<3> FlamingCows, care to explain what you just did? (:
<0> nowec: I fixed it. :)
<0> Um.
<3> yeah
<0> What part do you want explained?
<3> but '(.+?)' ?
<0> Ah.
<3> I think I understand / and /i that's for not case sensitive (/i)
<0> That's 'any character one or more times, ungreedy'.
<3> ungreedy?
<3> the / in the beginning and in the end is because we changed to preg instead of ereg, right?
<0> So it only catches what's in between the [b] and the closest [/b].
<0> Yes, that's just the delimiter.
<0> .+ would match all the way to the last possible [/b].
<3> ahh
<3> nice
<0> Like if we have: 'I [b]like[/b] pie and [b]stuff[/b]'.
<0> .+ would match:
<0> 'like[/b] pie and [b]stuff'
<1> nowec: But if you use / within the / delimiter, that has to be escaped... Or you want to use non-/ character :)
<3> (:
<0> Meh, chnage the delimiter to # then.
<0> Dammit.
<3> how do I do double quotes?
<0> s/chnage/change/
<3> FlamingCows, haha (:
<2> should the __construct function be in caps?
<1> itrebal: no.
<2> ok
<0> nowec: just don't use double quotes when you're not interpolating variables.
<3> [link="([allow])"] replaced to: <a href="\\1">\\1</a> I can do it with ' bot not with "
<4> Hi, if i have an array and want to replace each value in it which is empty with a string how would that loop look like? something like: foreach($array as $arr) { if(!$arr["what_here?"]) { $arr["whathere?"] == "string"} } or something?
<0> gimmulf: There is an empty() function.
<5> how to change a number var into a text var ?
<0> xiaogil: PHP automagically typeshifts.
<5> FlamingCows: ?
<6> how do i join variables ?
<0> You don't need to chnage it, just use it as a string.
<4> oki FlamingCows but what if the array comes from $arr = mysql_fetch_***oc($stuff_from_db); and $arr collects values from some columns
<1> xiaogil: typecasts
<6> like i have $slot1 but i want to add 'c' to the end
<4> how do i check thoose values
<0> dimitri1: Dot operater concatenates.
<0> $slot1.'c'
<6> that won't evaluate $slot1c
<1> !+var vars
<7> var vars is probably http://php.net/manual/en/language.variables.variable.php
<0> gimmulf: Your foreach is right, just use empty($var) instead of !$var.
<5> Stormchaser: I still don't understand...
<1> xiaogil: php.net/types
<0> gimmulf: The 'whatehere' is just $key, like in:
<3> Stormchaser & FlamingCows: thanks a lot for the help!
<1> dimitri1: You probably want to hace something likde
<1> rats
<5> Stormchaser: thanks!
<6> ${$slot1.'c'}
<6> ?
<1> dimitri1: You probably want to hace something like arrays where you want that monster



<0> foreach($array as $key=>$val) { if(empty($val)) { $array[$key] = "string"; } }
<0> ^---- That's what you need, gimmulf.
<4> ahh thanks FlamingCows
<6> ${$slot1.'c'} works ;)
<4> !
<6> thanks guys
<1> ew.
<0> Stormchaser: 'var vars' should just shout at the person who wants to use them.
<0> 'YOU **** AND NEED BETTER DESIGN! AND YOUR MOTHER IS FAT!'
<1> FlamingCows: :)
<0> That would solve many design errors.
<1> lol
<1> php-bot: no, var vars is <reply> var vars is http://php.net/manual/en/language.variables.variable.php, but by using that you probably have an error in your logic... You should use arrays instead (http://php.net/array)
<7> Stormchaser: okay
<8> ok back
<3> FlamingCows, (.+?) will also allow ', is there some way to prevent ' from behing used in the [b][/b] tag?
<0> Stormchaser: lig's blog has inspired me to jump on the blogwhore bandwagon: http://www.codevortex.com/blog/
<0> I require comments!
<0> FEED ME!
<1> FlamingCows: bitch!
<0> nowec: Use [^']
<1> :)
<9> FlamingCows: "It is... It is... It is green."
<9> But it definitely resmbles a typical blog template.
<0> Indeed.
<9> More to the point, it resembles a WordPress template.
<9> Since all WordPress blogs look the same.
<3> FlamingCows, how do I combine [^'] with (.+?) ?
<0> mattmcc: I will fix that later.
<0> I only set it up ten minutes ago.
<0> nowec: Use [^'] instead of .
<0> Heh.
<3> so . is for "any char"?
<0> Yes.
<9> lig: And cows?
<3> and + is for repeat?
<10> exploding cows would be cool
<0> I'll put up a design that does not look like WordPress, that features cows and combustion in some form, in the next 48 hours.
<1> lol
<1> http://storm.homeunix.org/misc/irc.png <-- The reason why FlamingCows's blog is green (note the nick coloring)
<11> hello, Do I have to adjust the some PATH variable if I want to execute scripts in another dir, Apache is in chroot and I cant execute anything :(
<1> alice|wl_: You're screwed, then
<0> Stormchaser: I'm sure that must mean something good.
<0> The green coloring.
<1> lol
<2> Stormchaser: damn, is your server slow or just too many people attacking it?
<0> Stormchaser: Like green must signify 'one really cool frood' in your IRC client.
<11> indeed, costs me the whole day now
<1> FlamingCows: I'll probably yank out Drupal, and publish a daily webcomic
<0> Sounds fun.
<1> It's not so easy to make webcomic :)
<1> Well... I like... But it consumes lots of time :)
<4> hmmm FlamingCows sure on that loop you showed me earlier: foreach($get_user_settings_res as $key=>$val) {if(empty($val)) {$get_user_settings_res[$key] = "string";}} cant get it working
<1> s/like/lie
<0> gimmulf: That's not very descriptive of what the problem is.
<1> !+does't work
<1> !+doesn't work
<7> Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Please be specific! Examples of what doesn't work tend to help too. Finally, showing us the code is helpful (after you've explained your problem). /msg php-bot pastebin for more information
<4> FlamingCows: ahh got it working now :)
<11> maybe the PATH var from the apache environments prevents me from opening scripts in the chroot ?
<2> FlamingCows: you deffinatly have some amazing images (cue: jesus got milk)
<0> Heh.
<2> http://www.codevortex.com/images/pics/100_0084.jpg <-- vicious knife..
<0> :)
<1> itrebal: It looks like a normal hunting knife...
<0> All those pics are of my childhood home, taken during the holidays. I have a bunch of old stuff like that knife there.
<0> Well, most of them.
<2> ah
<11> I turned of safe_mode and tried all path variations I can think of, I m using the exact same script on another server and it works, I testet with exec, shell_exec, system, p***thru and backticks and all I get is empty string empty array or 127, any idea what might cause this ?
<2> i noticed you delted a few.
<0> A few more private ones.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#bash
howto x600 ati ubuntu
fedoracore6 commands
contract vs salary
pressurification meaning
How to pass php array in form and get the array in another form
mysql longest prefix
suse xgl jasper
awk asort examples
#gentoo



Home  |  disclaimer  |  contact  |  submit quotes