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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-03
[00:02]<pjj>Haha. I think I killed the conversation.
[00:02]<wjlllrws>yep
[00:03]<wjlllrws>murdered. You'll hang for this!
[00:13]<vxnjcjmn>is there a way to connect to a openoffice base database with php, through odbc or otherwise?
[00:14]<wjlllrws>google for it
[00:15]<vxnjcjmn>I have been.. I am not finding anything
[00:15]<vxnjcjmn>hence why I came on here to ask
[00:15]<eyzau>i'm not sure why you would want to
[00:15]<wjlllrws>zircu: That's the new 'access'
[00:16]<eyzau>that re-enforces my question :)
[00:16]<wjlllrws>*nod* :)
[00:17]<eyzau>they are usually used for desktop db's
[00:17]<vxnjcjmn>yup, like keeping track of my cd collection
[00:19]<jdddd>heh, at least he didn't say his MP3 collection =)
[00:19]<wjlllrws>lol
[00:20]<vxnjcjmn>heh
[00:20]<jdddd>VERY COOL.... http://mrl.nyu.edu/~jhan/ledtouch/index.html
[00:21]<jdddd>I think I'm gonna make one (or something like it)
[00:23]<lugcdmugcd1000>say ya'll, Is it possible to make an array w/ duplicate keys
[00:23]<zzlzm>no
[00:23]<lugcdmugcd1000>crap
[00:23]<nnjtxnzdya>Jymmm: Hmm, I don't quite get how that is working
[00:23]<jdddd>$arr[][][]
[00:24]<jdddd>NeoThermic it's using the LED's as INPUTS
[00:24]<lugcdmugcd1000>how about something like array_search that will search the key vals
[00:25]<wjlllrws>array_keys
[00:25]<lugcdmugcd1000>thx
[00:25]<nnjtxnzdya>how though? I thought LED's were output compomnets only
[00:25]<vwjmncj>howdy all
[00:26]<vwjmncj>is there a way to take two MySQL datetime fields and find the difference between the two times
[00:26]<jdddd>NeoThermic Usually yes, but by revere biasing the LED's your able to use them as inputs.
[00:26]<vwjmncj>like "3 hours 4 minutes"
[00:26]<wjlllrws>twodeko: #mysql
[00:26]<jdddd>NeoThermic: http://motestruments.com/led-touch-sensor-circuit/
[00:26]<vwjmncj>Wolfpaws, i have them in a php array
[00:27]<vwjmncj>and figured the time() function would do something like this
[00:27]<jdddd>NeoThermic I think it's totally fscking cool... no more mechanical switches, can be installed almost anywhere.
[00:27]<wjlllrws>I have doubts that time() would do something like that...
[00:27]<jdddd>and cheap as can be
[00:28]<wjlllrws>twodeko: Use MySQL date functions. #mysql
[00:28]<||aw>twodeko: strtotime() and do some math
[00:28]<vwjmncj>thanks Wolfpaws
[00:28]<nnjtxnzdya>Jymmm: wow. I never knew you could do that.
[00:29]<jdddd>NeoThermic Basically, it's exploiting the physics of LEDs
[00:29]<nnjtxnzdya>I'll have to try that myself
[00:30]<nnjtxnzdya>Exploiting physics, one LED switch at a time!
[00:30]<jdddd>NeoThermic I already have a BASIC STMAP and LEDs, so this will be cool.
[00:42]<krdyf->hello
[00:42]<krdyf->anyone?
[00:43]<wjlllrws>!tell Kamil- about g1
[00:44]<krdyf->which variable do i need to retrieve information from site
[00:45]<wjlllrws>$_SERVER or $_VAR usually
[00:45]<wjlllrws>er... $_ENV
[00:45]<drvvdaa>What sort of information? :)
[00:45]<wjlllrws>oh, that too :)
[00:50]<krdyf->top 10 albums from a link
[00:50]<wjlllrws>Er... What?
[00:51]<krdyf->i read w3schools tutorial, they dont have this $_SERVER or $_VAR in their tutorial
[00:53]<wjlllrws>Ah... I understood "server"... php.net/file_get_contents()
[00:53]<xgg0g>which has less overhead? checking if a class exists, and including its file if it doesnt, or just using require_once ?
[00:53]<wjlllrws>minus ()
[00:53]<xgg0g>both will achieve the same effect, yes?
[00:54]<wjlllrws>I'd go with require_once()
[00:54]<||aw>Xen0n: just require_once, the backend C code is faster than running 2 php lines
[00:55]<xgg0g>well, i use require_once() for the include anyway... but i should skip if (class_exists($class)) first if there are no files with duplicate classes, yes?
[00:55]<rrymrree_>ok so i need to use/write a function that gives me the difference of two variables, no matter what cars or how big they are, so like $var1 = 'qweqwebobqweqwe123' $var2 = 'qweqweqweqwe' the function will return 'bob123', etc. any ideas?
[00:55]<xgg0g>actually... ugh..
[00:57]<xgg0g>||cw, just realised, a little more complicated - i need to check for file existance too...
[00:57]<xgg0g>require_once would create a fatal error...
[00:58]<xgg0g>or.. should i use include_once and suppress errors, then check the return value?
[00:59]<xgg0g>hmmm
[00:59]<xgg0g>not making much sense here i dont think :(
[01:00]<cznff9q>Is there any memory difference between 5 arrays and an array of those same 5 arrays?
[01:00]<tml>acidjazz_: Using PHP5?
[01:00]<tml>Crell42: Sure
[01:01]<rrymrree_>TML: yes php5
[01:01]<tml>acidjazz_: join("", array_diff(str_split("qweqwebobqweqwe123"), str_split("qweqweqweqwe")));
[01:01]<cznff9q>TML: How much?
[01:01]<tml>Crell42: about the size of one array structure
[01:01]<tml>Give or take a few bytes
[01:01]<cznff9q>Is that a constant size?
[01:01]<tml>No
[01:02]<cznff9q>Is it enough to justify an API that is incapable of handling multi-dimensional arrays as a way to create a table?
[01:02]<tml>No
[01:03]<tml>Well...not IMO, but that's really up to the API author.
[01:03]<2nwnsv>is php5 backwards compatible to run all php4 scripts?
[01:03]<cznff9q>The API author is my coworker who I really think is incompetent about now.
[01:03]<tml>bewest: Absolutely not
[01:03]<rrymrree_>TML; thats on a character basis
[01:04]<rrymrree_>TML; i need this to accomodate order as well
[01:04]<tml>Crell42: I'm rather incompetent about now as well. I'm much better about 6 weeks from now, and I get even better the further off from "now" we get.
[01:04]<tml>acidjazz_: What do you mean?
[01:05]<tml>acidjazz_: That does in-order traversal of both arrays simultaneously, so you'll get the "diff" out in the same order as the were in the input.
[01:05]<cznff9q>TML: LOL. One of those weeks, eh?
[01:06]<tml>Crell42: No, I've just never been any good at dealing with the "Now"
[01:06]<tml>I'm more of a "live six weeks in the future at the cost of the present"
[01:06]<tml>(kind of guy)
[01:07]<xgg0g>Hmmm
[01:07]<xgg0g>This might be asking something stupid.... but is it possible to have a public static method that is NOT inherited by subclasses?







