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-23
[10:57]<wjlllrws>wrong button?
[10:57]<lyjgqo>is there a way to get total query time on a single page
[10:57]<jdddd>Lion28 microtime
[10:57]<tjufgg>Lion28: uh time each query and then sum them up
[10:58]<tjufgg>Or perhaps that isn't overly obvious
[10:58]<tjufgg>In that case I'm going to go patent it.
[10:58]<alnr>too late, it's public domain now ;)
[10:58]<tjufgg>jpeg: talking about it doesn't invalidate it's patentability
[10:59]<mnzmzjjv>unfortunately, there are a lot of code that uses the idea
[10:59]<jdddd>Touqen: But you too slow, I already have a noterized patent application on file!
[10:59]<cryggrvyjg>Touquen do i need to use SQLITE_ASSOC when i'm not goign to output the result to the user?
[10:59]<lyjgqo>hm... to do that on a web portal I need to make a query function and use this one instead :S it's kinda hard to check all the queries since the intro page includes many subfiles with many queries :S damn... lot of work ahead of me
[10:59]<ajdn>Touqen: And how long is the period prior to application that you can talk about in the US?
[11:00]<tjufgg>kainnation: What kind of qu estion is that?
[11:00]<cryggrvyjg>is that just to make it look pretty
[11:00]<cryggrvyjg>* remembers why he hates SQL *
[11:00]<wjlllrws>kainnation: RTFM
[11:00]<tjufgg>...
[11:00]<tjufgg>kainnation: Do you know what an associative array is?
[11:00]<cryggrvyjg>yessir
[11:01]<tjufgg>What?
[11:01]<wjlllrws>wahahaha :)
[11:01]<tjufgg>A cut & pasted answer is grounds for ignoration
[11:01]<jdddd>If he responds from with a quote from docs, I'm going to ban him
[11:02]<cryggrvyjg>an array that contains a key associatedwith a vlaue
[11:02]<wjlllrws>kainnation: seriously -- RTFM. php.net/tutorial
[11:02]<tjufgg>kainnation: Okay.
[11:02]<zdzd>Excuse me, just a quick question. Using mySQL. And trying to insert TODAYS date into a row. $date = date("Y-n-j"); Is not working for me, even though that "seems" to be the format the DATE field is set for... Anybody know a quick way to get a date into mySQL?
[11:02]<tjufgg>So what would an associative array returned from a function have to do with what is displayed to the user?
[11:02]<cryggrvyjg>so it makes it associated with the key not just the numeric key the array gives it
[11:02]<cryggrvyjg>i get that part
[11:02]<tjufgg>Jymmm: That wasn't necessary.
[11:03]<cryggrvyjg>nm nm i got it
[11:03]<jdddd>Touqen enter abuse.
[11:03]<mnzmzjjv>Ryry: the format is yyyymmdd, unless you changed it
[11:03]<tjufgg>Ryry: NOW
[11:03]<cryggrvyjg>i just didn't understand why it output both
[11:03]<cryggrvyjg>now i do
[11:03]<jdddd>Touqen enter abuse.
[11:03]<cryggrvyjg>now i can make it an assoc array so i can call it by the value not the num key
[11:04]<tjufgg>alright, stop talking about it and just go do it
[11:04]<wjlllrws>Wha? What value?
[11:04]<mnzmzjjv>kainnation: it'd be faster for you if you would at least scan through the array functions list
[11:05]<cryggrvyjg>the associated value ;)
[11:05]<wjlllrws>kainnation: *blink*
[11:05]<mnzmzjjv>Wolfpaws: i think he wants to reverse it
[11:05]<mnzmzjjv>key => value into value => key
[11:05]<wjlllrws>kainnation: php.net/array
[11:05]<cryggrvyjg>no no no
[11:05]<suv9w9>ok I've read some horrid stories about session_Id unable to execute more than one page at a time and losing sessions after header redirect and so on
[11:05]<wjlllrws>yes yes yes
[11:06]<cryggrvyjg>deadroot i needed this
[11:06]<cryggrvyjg>http://us3.php.net/sqlite-query
[11:06]<suv9w9>is there alternative for storing PID, short of GET
[11:06]<tjufgg>suv4x4: It's not a horror story.
[11:06]<suv9w9>Touqen, meaning
[11:06]<tjufgg>The people who coded those apps were idiots.
[11:06]<jdddd>YES! YES! YES! OH GAWD YES!
[11:06]<wjlllrws>kainnation: Would you *PLEASE* read the manuals?
[11:07]<cryggrvyjg>i am
[11:07]<suv9w9>Touqen, ok please gimme few recomendation to live by with sessions. First thing: unable to execute more than one page at a time. How to avoid this. Second: losing session with header redirect
[11:07]<wjlllrws>kainnation: apparently not
[11:07]<mnzmzjjv>kainnation: i don't see how sqlite-query is related to your last question
[11:07]<tjufgg>suv4x4: I don't even know what "execute one page at a time" even means.
[11:07]<cryggrvyjg>deadroot it was displaying the numeric key as wel las the associated key
[11:07]<cryggrvyjg>i just wanted to grab the associated key
[11:08]<tjufgg>That sounds like a non-technical person sounding like an idiot while referring to something technical well out of their domain of knowledge.
[11:08]<wjlllrws>hehe :3
[11:08]<suv9w9>Touqen, means many people found that starting a session in one page makes other pages that use sessions to "wait" for that page to complete
[11:08]<suv9w9>Touqen, PHP does this
[11:08]<tjufgg>suv4x4: Bullshit
[11:08]<mnzmzjjv>suv4x4: /no/ it doesn't
[11:08]<suv9w9>Touqen, that's ok but why do people report this :P
[11:08]<tjufgg>For the second thing, if you understand HTTP it's not a problem.
[11:09]<tjufgg>suv4x4: Becaue they are idiots.
[11:09]<tjufgg>because*
[11:09]<lxldrgq1>How can i query all the images outt of 1 folder
[11:09]<lxldrgq1>on mysql
[11:09]<wyfddrgw>when i use imagecreatefromgif ( string filename )
[11:09]<mnzmzjjv>kainnation: why are you concerned with both numeric and non-numeric keys?
[11:09]<suv9w9>Touqen, that's not very convincing.
[11:09]<lxldrgq1>i got the folder name inserting into mysql, but how can i query that folder it contains nothing,but images and there thumbnails
[11:09]<tjufgg>suv4x4: I don't know why they report it.
[11:09]<wyfddrgw>is the ($file) the file I am reading in, or is this the file i am creating?
[11:09]<cryggrvyjg>because if you don't tell sqlite_query which one you want by default it displays both
[11:09]<tjufgg>They probably have some other issue that they don't understand that they are attributing to php.
[11:10]<cryggrvyjg>suv4x4 wtf are you talking about
[11:10]<mnzmzjjv>kainnation: and this is a problem how? if you're concerned about performance, don't worry. it's negligible
[11:10]<suv9w9>go check the comments on php.net under session_start() Touqen, kainnation
[11:11]<suv9w9>Touqen, also if I know HTTP that's not a problem with redirect: ok I don't know it well enough, can you give me an advice what needs to be done
[11:11]<suv9w9>Touqen, just trying to get some info here, I'm not actually bashing sessions
[11:11]<cryggrvyjg>i just did a test query and got the array displayed and was wondering why it looked like it did and how to change it
[11:11]<cryggrvyjg>and the very kind Touqen directed me to the appropriate page in the manual
[11:12]<mnzmzjjv>suv4x4: which comment in particular in www.php.net/session_start ?
[11:12]<cryggrvyjg>shere 4x4 http://us3.php.net/manual/en/ref.session.php
[11:12]<cryggrvyjg>lol
[11:12]<suv9w9>deadroot, just a sec I'll refer you to some
[11:12]<suv9w9>deadroot, see for example benja at benja dot be (15-Apr-2003 07:45)
[11:13]<suv9w9>"Just for info, session_start() blocks if another PHP using the same session is still running in background. It seems it's waiting the other PHP to finish... and sometimes it can be a problem. Create 2 different sessions by setting 2 different names : session_name() solve the problem.
[11:13]<cryggrvyjg>dude







