IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-15
Pages: < Prev
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Next >
[09:18]<bzyrgyvx>+CWhiz: I will be using one and only directory, so fortunately I don't need to figure out where the files are, as they'll all be in one.
[09:18]<eyzau>-Tedd: oh i see now, you are trying to include it directly into the script?
[09:18]<tnmm>-Yeah.
[09:19]<fyr>+ACTION grabs Jymmm throws him against the wall and lays one on him
[09:19]<kyddja>+If only I could remember why I decided to not switch to the mysqli functions...
[09:19]<pfraaym>+zircu: yeah.
[09:19]<kyddja>+Damn memory gaps.
[09:19]<jdddd>+OH BABY!!!
[09:19]<eyzau>-Tedd: i was assuming you wanted to view just the image with the script
[09:19]<tnmm>-And you yelled at me for swearin'.
[09:19]<fyr>+hehe
[09:19]<tnmm>-Ah. Okay.
[09:19]<tnmm>-It's all good.
[09:19]<tnmm>-I'll just use <img>.
[09:19]<kyddja>+Anyone remember me coming in here talking about mysqli VS mysql functions?
[09:20]<jdddd>+Which mother fucker cock sucking son of a bitch was whing about swearing?
[09:20]<eyzau>-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 assume this is just a viewing page
[09:20]<tnmm>-ACTION points at lig
[09:20]<fyr>+Jymmm, shut the hell up
[09:20]<fyr>+and go sit in your corner
[09:20]<tnmm>-I would be terrible in a bank robbery.
[09:20]<eyzau>-heh
[09:21]<tnmm>-Although I guess bank robberies never go like they used to....Willy Sutton must be turning in his grave.
[09:21]<fyr>+LOL
[09:21]<pfraaym>+zircu: thats pretty much how i do it, you'd be suprised how much logic there is in just doing that
[09:21]<kyddja>+Why can't I remember my own insightful conclusions, realized not much longer than one month ago?! :|
[09:21]<tnmm>-Oh man, I think I like this place.
[09:21]<fyr>+KimmoA, that is what comments in the code is for... LOL
[09:21]<fyr>+ACTION pets Jymmm
[09:22]<eyzau>-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');
[09:22]<tnmm>-Oh shit. I have work tomorow.
[09:22]<kyddja>+lig: Blergh...
[09:22]<tnmm>-At 8.
[09:22]<tnmm>-...It's 2.
[09:22]<jdddd>+Gawd I love this stuff (Pico Pica Hot Sauce)
[09:22]<kyddja>+I think it might have been something about mysqli simply just fucking up.
[09:22]<eyzau>-the default action can be tough though
[09:22]<kyddja>+Anyone here using mysqli* successfully?
[09:23]<eyzau>-KimmoA: sure about 100 times
[09:23]<pfraaym>+hmmm. i don't need to do that as i just change the sql query instead and html sub-template
[09:23]<kyddja>+zircu: Um... O_o
[09:23]<eyzau>-um what?
[09:24]<kyddja>+100 times?
[09:24]<kyddja>+Is that some kind of joke?
[09:24]<eyzau>-i rounded up
[09:24]<mnzmzjjv>+about == +- 100 times ;)
[09:24]<eyzau>-so 50+ is safe to say
[09:24]<kyddja>+I don't see why the number is relevant, or even what they mean.
[09:24]<pfraaym>+i wonder if someone has come up with a good algorithm
[09:25]<kyddja>+s/they mean/it means/
[09:25]<mnzmzjjv>+flaccid: that's very open ended
[09:25]<mnzmzjjv>+flaccid: god? mother nature? your mom?
[09:25]<pfraaym>+.. in regards to the post/get eval
[09:25]<vmmwno9>-zircu: whats wrong with my page man
[09:25]<eyzau>-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
[09:25]<znzjs>+I'm sure got has a good algorith
[09:25]<znzjs>+m
[09:25]<vmmwno9>-it won't upload, and create image
[09:25]<znzjs>+god
[09:25]<vmmwno9>-i mean folder
[09:25]<pfraaym>+i wouldn't mind trying to do it with a strategy system
[09:25]<znzjs>+wow I'm just having an off day :d
[09:26]<pfraaym>+deadroot: what ya reckon
[09:26]<eyzau>-tdd1984: i'm not sure
[09:26]<mnzmzjjv>+eval? post/get validation?
[09:26]<pfraaym>+deadroot: have a read of what i was talking to zircu bout
[09:27]<vmmwno9>-zircu: http://pastebin.com/710144 look at 31, and 35
[09:27]<vmmwno9>-are they right?
[09:27]<kyddja>+zircu: How come you use it over mysql*?
[09:27]<vmmwno9>-it won't create the directory
[09:27]<tnmm>-Well, kids it is time for me to go to bed so I don't get fired from a crappy job.
[09:27]<tnmm>-Take it easy, all of yeh'.
[09:27]<kyddja>+mysqli_real_query <-- Now, that is just one silly function name.
[09:27]<tnmm>-KimmoA, it's to prevent you from looking at the FAKE function.
[09:27]<kyddja>+:S
[09:27]<tnmm>-Night.
[09:27]<kyddja>+mysql_query is the real one IMO.
[09:28]<eyzau>-tdd1984: also the is_dir()
[09:29]<vmmwno9>-zircu: do what now
[09:29]<eyzau>-KimmoA: i dont use mysqli i use pdo
[09:29]<eyzau>-tdd1984: properly quote your strings
[09:29]<vmmwno9>-okay so quote the isdir?
[09:29]<eyzau>-tdd1984: the strings
[09:29]<bzyrgyvx>+does the mkdir function screw up your script if the directory already exists, or does it simply ignore it?
[09:30]<eyzau>-tdd1984: you have is_dir(images/$id1}} {
[09:30]<vmmwno9>-yea i changed it
[09:30]<kyddja>+zircu: :S
[09:30]<eyzau>-Brianith: it doesn't screw it up it just issues a warning by default
[09:30]<bzyrgyvx>+oh ok
[09:30]<mnzmzjjv>+flaccid: oh. well, that's the holy grail of programming (ignoring da vinci)
[09:31]<vmmwno9>-zircu if i use mkdir("/$id1") it works, but if i do mkdir("images/$id1") it don't work
[09:31]<eyzau>-KimmoA: but if i had a choice between mysql and mysqli i would use mysqli
[09:31]<kyddja>+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?
[09:31]<duxjj>+wtf is mysqli?
[09:31]<kyddja>+zircu: Why?
[09:31]<kyddja>+muhoo: Some stupid crap.
[09:31]<eyzau>-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
[09:31]<znzjs>+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
[09:31]<mnzmzjjv>+muhoo: an updated and OO interface to mysql
[09:32]<duxjj>+deadroot: thanks







