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



Comments:

<0> Is it hard?
<1> hardly
<2> bomb diggity
<3> but it is one of the programming mysteries that have plagued society since the myth of "Hello World"
<0> How exactly do you make PHP write to a .txt file on the server
<3> Truth be told, most "quote" pages are rarely that
<1> www.php.net/fwrite
<2> ssshhh that's secret information
<1> hey we all gotta start somewhere
<3> Rather, they are grouping of hallucination-inducing images that convinces one that they are using a quotes db
<1> I forwarded him to a tutorial and the manual
<1> he should be off to a good start
<0> so basically i can fwrite from reading a text box
<2> yeah, reading from files ****
<2> s
<1> http://cgi.4chan.org/r/src/1168826652641.jpg



<1> heh
<3> DSXX: you may also want to invest some time on file locking if you're going to do this
<3> you don't want concurrent users clobbering other user's input
<3> @flock
<4> (PHP 3 >= 3.0.7, PHP 4, PHP 5)
<4> bool flock ( resource handle, int operation [, int &wouldblock] )
<4> Portable advisory file locking
<4> http://www.php.net/flock
<0> ok how do i put together two strings
<0> "a" and "b"
<0> "ab"
<3> DSXX: it is extraordinarily important
<3> that you at least read from cover to cover this chapter: http://www.php.net/manual/en/language.types.php
<3> before you do any programming
<2> lol
<3> GLtron rocks
<5> my goal for this month is to not spend over than $500
<5> i have until the 10th to only spend $420
<1> good luck broadway boy.
<2> heh
<5> hah. that's exactly why :P
<5> cc bill was $2250 last month
<5> sent my checking account down to $50 :D
<3> yikes
<5> that was all xmas presents though
<5> and i haven't gotten my xmas bonus
<1> you need to hire me there buddy
<3> tron kicks my *** :(
<2> i'm in the mood for some galaga :/
<6> http://pastebin.ca/317013 - any easy way to have expected result?
<3> Ox41464b: I'm thinking split on space
<3> then preg_split on ['"]
<3> sorry
<3> that was the alcohol
<7> um... will broken at "with space value"?
<3> split on space
<3> split on equal
<3> yeah :(
<3> you need a lexer :/
<3> or you'll have to go char by char
<3> just a sliding buffer that holds whatever your handling
<3> e.g.
<3> buff = ""
<3> while true
<3> c = getchar(string)
<3> if c is not in (=,',")
<3> buff += c
<3> else if c == "="
<3> key = buff; buff = none; currkey = key
<3> along those lines
<3> kind of nasty
<3> which is why having a lexer to tokenize that for you would be tops
<3> though I don't know if php has that capability
<3> nothing in pecl or pear
<2> or mexican ***
<8> "he's ****in' dis cust'd, and i'm deep in dis pear"
<3> oh fedt and Two-Bits you collective cards
<8> _Ox41464b: actually, you can do that with a single regex match
<7> Two-Bits, such as... ?
<8> just so long as, i ***ume, you dont have to worry about like a tag ending or the like



<8> and as long as you can ***ume the format is valid (matching quotes exist, etc)
<3> I think the problem comes with dealing with different types of quotes though
<8> '/(\w+)=(([\'"]).*?(\2)|\S+)/'
<8> rough example
<8> a back reference and alternation *should* handle it well enough
<8> er.. that should be \3
<3> except that doesn't handle no quotes
<8> hrm.. actually, lemme fix that
<8> yeah it does, it's just not removing them
<8> notice teh |\S+
<7> current: http://pastebin.ca/317030
<7> still having problem at [d] and [f]
<8> preg_match_all('/(\w+)\s*=\s*(([\'"]).*?\3|[^"\']\S*)/', $attr, $m);
<8> seems to work ok
<2> i hate putting opening braces on the next line
<7> Two-Bits, o_O... thanks
<7> $key = $m[1]; and $value=$m[2]; many thanks...
<8> you can also use $m[3] with trim() if you want to fix up the values
<3> this is why I can't program when I drink a lot :/
<5> let me fix that for you
<5> <3> this is why I can't program
<5> BUUUUUUUUUURN
<5> i was searching for backpacking through italy
<5> http://newhaven.craigslist.org/clo/255490296.html
<5> came up with that
<5> close.
<2> hahaha
<2> i haven't pooped in three days
<8> *****
<2> how?!
<8> be a man, pinch a loaf!
<5> http://www.macbackpackers.com/5dayskyelochness.html
<5> i think i'm going to do that.
<5> fly into something like italy on friday/saturday, then take a train through europe and leave on the backpacking thing on tuesday
<8> you do realize that backpackers have to carry stuff, right? most notably they carry packs.. on their backs.. and walk a lot. i know you live in new york, but are you sure you're physically up to that?
<5> i can walk all day without problem
<8> ... hehe.. that's a good one. mr programmer... walking.. hahaha!
<5> hey i even run occasionally :P
<2> i bike
<8> yeah, but you're being chased like by bears or something then, right?
<5> no.. only if i see black people
<2> heh
<9> Question: how to insert javascrip inside php file?
<7> echo '<script>alert("Hello World");</script>';
<5> `Jericho_diYK, you know.. adding "Question:" before a sentence that ends with a question mark makes it rather redundant
<9> _Ox41464b_ thx
<7> ansimation: *!*@200.* <- this
<7> * Dns resolved pcsp185-194.supercabletv.net.co to 200.106.185.194
<1> _Ox41464b: ?
<1> oh
<8> Observation: evulish is right
<8> Addendum: i have gas
<8> NO NOT Azhi_Dahaka!
<10> Uh?
<8> beats me, i thought you knew
<10> knew what?
<1> lol
<1> ah **** I think it's about that time
<11> allow
<12> hi all can anyone here help me with foreign keys in mysql
<13> @roulette
<3> @roulette
<4> comcor: *click*
<14> @roulette
<2> @roulette
<4> follower_: *click*
<4> fedt: *click*
<1> @roulette
<4> ansimation: *click*
<13> figures
<11> @roulette
<4> aje: *click*
<14> @shoot ansimation


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#worldchat
#chat-world
kelly osborne lost weight
#kl
#linux
chat grils
frindstir
#chat-world
#allnitecafe
#india



Home  |  disclaimer  |  contact  |  submit quotes