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



Comments:

<0> Damn memory gaps.
<1> OH BABY!!!
<2> Tedd: i was ***uming you wanted to view just the image with the script
<3> And you yelled at me for swearin'.
<4> hehe
<3> Ah. Okay.
<3> It's all good.
<3> I'll just use <img>.
<0> Anyone remember me coming in here talking about mysqli VS mysql functions?
<1> Which mother ****er cock ****ing son of a bitch was whing about swearing?
<2> flaccid: well, one option would be to test for contents in $_POST, if so, do the stuff you will do in a action script and exit, otherwise ***ume this is just a viewing page
<4> Jymmm, shut the hell up
<4> and go sit in your corner
<3> I would be terrible in a bank robbery.
<2> heh



<3> Although I guess bank robberies never go like they used to....Willy Sutton must be turning in his grave.
<4> LOL
<5> zircu: thats pretty much how i do it, you'd be suprised how much logic there is in just doing that
<0> Why can't I remember my own insightful conclusions, realized not much longer than one month ago?! :|
<3> Oh man, I think I like this place.
<4> KimmoA, that is what comments in the code is for... LOL
<2> flaccid: i know i do that all the time but I seperate them out in seperate files.. so if the $_POST is set, i include('tool.action.php'); exit; else include('tool.view.php');
<3> Oh ****. I have work tomorow.
<0> lig: Blergh...
<3> At 8.
<3> ...It's 2.
<1> Gawd I love this stuff (Pico Pica Hot Sauce)
<0> I think it might have been something about mysqli simply just ****ing up.
<2> the default action can be tough though
<0> Anyone here using mysqli* successfully?
<2> KimmoA: sure about 100 times
<5> hmmm. i don't need to do that as i just change the sql query instead and html sub-template
<0> zircu: Um... O_o
<2> um what?
<0> 100 times?
<0> Is that some kind of joke?
<2> i rounded up
<6> about == +- 100 times ;)
<2> so 50+ is safe to say
<0> I don't see why the number is relevant, or even what they mean.
<5> i wonder if someone has come up with a good algorithm
<0> s/they mean/it means/
<6> flaccid: that's very open ended
<6> flaccid: god? mother nature? your mom?
<5> .. in regards to the post/get eval
<7> zircu: whats wrong with my page man
<2> KimmoA: you asked if anyone was able to use mysqli successfully and so the yeah.. about a 100 times means.. yes i have.. i hope that clears it up
<8> I'm sure got has a good algorith
<8> m
<7> it won't upload, and create image
<8> god
<7> i mean folder
<5> i wouldn't mind trying to do it with a strategy system
<8> wow I'm just having an off day :d
<5> deadroot: what ya reckon
<2> tdd1984: i'm not sure
<6> eval? post/get validation?
<5> deadroot: have a read of what i was talking to zircu bout
<7> zircu: http://pastebin.com/710144 look at 31, and 35
<7> are they right?
<0> zircu: How come you use it over mysql*?
<7> it won't create the directory
<3> Well, kids it is time for me to go to bed so I don't get fired from a crappy job.
<3> Take it easy, all of yeh'.
<0> mysqli_real_query <-- Now, that is just one silly function name.
<3> KimmoA, it's to prevent you from looking at the FAKE function.
<0> :S
<3> Night.
<0> mysql_query is the real one IMO.
<2> tdd1984: also the is_dir()
<7> zircu: do what now
<2> KimmoA: i dont use mysqli i use pdo
<2> tdd1984: properly quote your strings
<7> okay so quote the isdir?
<2> tdd1984: the strings



<9> does the mkdir function screw up your script if the directory already exists, or does it simply ignore it?
<2> tdd1984: you have is_dir(images/$id1}} {
<7> yea i changed it
<0> zircu: :S
<2> Brianith: it doesn't screw it up it just issues a warning by default
<9> oh ok
<6> flaccid: oh. well, that's the holy grail of programming (ignoring da vinci)
<7> zircu if i use mkdir("/$id1") it works, but if i do mkdir("images/$id1") it don't work
<2> KimmoA: but if i had a choice between mysql and mysqli i would use mysqli
<0> BTW... why doesn't mysql_query do mysql_real_escape_string inside it? To save some CPU cycles for when there is nothing that needs to be cleaned?
<10> wtf is mysqli?
<0> zircu: Why?
<0> muhoo: Some stupid crap.
<2> tdd1984: didn't work? if you take a close look at the pastebin you gave you have a parse error on line 31 with the }}'s
<8> flaccid, look at frameworks that have built in dispatch or write your own. preferably configurable without a single line of code, a giant switch() to tell if you need to load a view or an action page is a bad idea
<6> muhoo: an updated and OO interface to mysql
<10> deadroot: thanks
<2> KimmoA: because mysql5 is recomended and mysqli takes advantage of the mysql5 usage
<5> Zeros: a dispatch?
<0> I use MySQL 5. I don't see WTF that has got to do with the PHP functions.
<0> I send **** to the mysqld, and it returns stuff that I use in the app.
<2> KimmoA: read the documentation on php.net/mysqli
<7> zircu: nothing
<0> zircu: Don't you think I have by now?
<5> deadroot: sorry i meant strategy pattern
<8> fl0w, event dispatch, generally it means taking a URL parameter like 'action' and using it to determine what execution path to follow
<8> err flaccid ^
<2> KimmoA: read it again
<5> can you do strategy patterns with php
<8> flaccid, strategy patterns?
<0> zircu: I have freakin' read it! It simply makes no sense.
<6> http://en.wikipedia.org/wiki/Strategy_pattern
<5> Zeros: http://www.answers.com/strategy%20pattern?nafid=3
<2> KimmoA: then at this point i think you should remove yourself from the web programming community
<8> oh
<5> deadroot: do you think strategy pattern is a good way of doing it
<8> I do that all the time, never had a name for it
<0> zircu: What the hell are you talking about, retard?
<7> zircu: nothing
<6> flaccid: most of us do it all the time, i think
<1> KimmoA dont be rude
<0> He was rude to me...
<2> KimmoA: i've told you why you want to use mysqli over mysql but yet you sit there and say it doesn't matter
<5> deadroot: really. hmm. how can we convert that c# example to php
<2> KimmoA: if you want me to sit here and give you a few dozen examples on how mysql functions dont work with mysql5 i might have to do that
<0> You send a query (string!) to the mysqld. It returns a bunch of rows that you grab. Why does it matter what version MySQL is?
<0> I am questioning the very existence of mysqli.
<8> flaccid, have a look at how Fusebox works, that's an excellent good dispatch system.
<8> -good
<6> flaccid: the C# example given doesn't appear to be... relevant to the concept
<2> KimmoA: I have told you already why it exists
<0> ...
<7> can someone help me with my page?
<2> KimmoA: execute a query that has return params from a stored procedure in mysql_query()
<0> No... you keep repeating the same vague, general description, ignoring my actual question.
<11> KimmoA: What is your question?
<0> Why there is a need for a completely new set of MySQL functions, called mysqli*.
<2> KimmoA: prepare a sql statement and then execute it multiple times in a loop with different conditions
<2> KimmoA: execute a prepared stored query multiple times
<11> KimmoA: Because mysqli talks to the underlying MySQL interface differently than mysql does, and the interface has to be upgraded to support functionality in MySQL 4.1 and above.
<5> deadroot: check this out. this is on validation, which is one stage that i need to work out OOP anyway. http://www.phppatterns.com/docs/design/strategy_pattern
<0> So... if you never use these fancy, weird features, why should one use mysqli*? Will mysql* eventually be deprecated?
<2> KimmoA: if you want to are this, first understand what mysql5 does before trying to start arguments
<6> what does mysql5 does? :)
<0> Weird, funky, and non-standard ****, apparently.
<12> they are not fancy or weird, they are what other database have supported for years and mysql clearly lacked
<2> KimmoA: if you think all what i said was wierd fine.. go ahead and use mysql i'm not stopping you nor telling you to use mysqli
<2> KimmoA: you asked a question.. why mysqli vs mysql and I told you
<0> OK. Real question: Is it safe to continue using the good ol' mysql* functions?
<7> http://pastebin.com/710144 is there any good php programmers out there cause my mkdir isn't working, but will work if i just do mkdir($id), but it don't when i mkdir(images/$id)?
<2> is it safe to drive a car?
<0> People drive ancient cars...
<0> They seem to be OK.
<12> exactly: seem to be


Name:

Comments:

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






Return to #php
or
Go to some related logs:

imagerotate ubuntu
apt-get remove pureftpd*
centos 5 Extra.repo
Package openssh-server has no installation candidate
ubuntu Error loading Operation System
/dev/rtc: Device or resource busy
python read binary file to ansi
luomos in brazil
bugmenot Sun Online Account
redhat nforce430



Home  |  disclaimer  |  contact  |  submit quotes