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-07-25
[09:37]<pjf>Mercredi 03 août 2005 à 12:46 <- I would like to transform that string into a timestamp unix
[09:37]<pjf>hello
[09:37]<pyzrvnhnrm>which database are you using?
[09:37]<zjd2yn>Anyone else?
[09:37]<pyzrvnhnrm>mysql reports the time taken during queries, and I suspect that others do too.
[09:38]<pjf>PirateHead: i'm parsing a text file in french
[09:38]<pjf>and that's the only information I j
[09:39]<pjf>and that's the only information I have about the time
[09:39]<pyzrvnhnrm>Pol: sorry, I wan't specific.
[09:39]<valsdg>is there an easy way to see if a path goes to a file or a directory
[09:39]<valsdg>like isdir()?
[09:39]<pyzrvnhnrm>rabeldable: what DB are you using?
[09:39]<pjf>?
[09:39]<pyzrvnhnrm>Pol: I don't know how to solve your problem.
[09:39]<pjf>ok...
[09:39]<zr2nfmr2fn>mysql
[09:40]<valsdg>ah. is_dir
[09:41]<pyzrvnhnrm>rabeldable: can you use microtime()? are you on POSIX?
[09:42]<rdvxzrwff>Pol, have you tried strtotime?
[09:43]<zr2nfmr2fn>fedora core 3
[09:43]<rdvxzrwff>rabeldable, that would be a yes
[09:44]<zr2nfmr2fn>how bout this, i'm not running windows
[09:44]<rdvxzrwff>rabeldable, capture the microtime() before the query, then after the query, and then subtract... viola you have execution time
[09:45]<rdvxzrwff>look in the manual, under microtime(), there is an example
[09:45]<zr2nfmr2fn>got it
[09:45]<zr2nfmr2fn>i've done these kinds of things before just not with php
[09:46]<zjd2yn>Anyone else want to try fixing this defective function?
[09:46]<zr2nfmr2fn>it just seems to me that a time function should be called time() not something else... its hard to find it in the index, if you know what I mean!
[09:46]<mrgp_wn6n>what function?
[09:46]<zjd2yn>http://pastebin.ca/99220 Offending Function.
[09:46]<pyzrvnhnrm>microtime();
[09:46]<pyzrvnhnrm>if you use the downloadable reference, it has full-text search
[09:46]<pyzrvnhnrm>which is really sweet
[09:46]<pyzrvnhnrm>dunno about the online one
[09:47]<pyzrvnhnrm>I work on dial-up half of the time, so I don't rely on online references.
[09:47]<zjd2yn>danf_1979: I need to know the proper way to create a Fall through based on Apache System Variable AUTH_TYPE
[09:47]<mrgp_wn6n>dont know about that topic, sorry
[09:47]<pyzrvnhnrm>Zombie: why are you asking that here?
[09:47]<pyzrvnhnrm>Zombie: is that a PHP-related question?
[09:47]<rdvxzrwff>rabeldable, time() is a function that returns seconds, microtime() is better, because it returns in microseconds... and alot or php execution is done in microseconds...
[09:47]<zjd2yn>Yes.
[09:48]<rdvxzrwff>Zombie, wtf is a fall through?
[09:48]<zjd2yn>Well.
[09:48]<pyzrvnhnrm>Zombie: perhaps I am ignorant about apache, but it sounds more like an Apache question to me.
[09:48]<zjd2yn>Have you looked at the code on the pastebin?
[09:48]<rdvxzrwff>your talking mumbo jumbo
[09:48]<rdvxzrwff>yus
[09:48]<zr2nfmr2fn>nice
[09:48]<zjd2yn>Okay.
[09:49]<zjd2yn>What that function does is take authentication from HTTP authentication, and validate it.
[09:50]<zjd2yn>But it won't always be the case that HTTP auth comes with a Username and password/.
[09:50]<zjd2yn>Sometimes Alternative Crededentials are provided.
[09:50]<pxrrnn>Ok, I have no idea what I'm doin... lol I am trying to read up on the pattern syntax to understand preg_match better but I'm just confusing myself by making it harder than it is... :$
[09:50]<zjd2yn>In that case,
[09:50]<zjd2yn>Only a User Name is provided.
[09:51]<rdvxzrwff>Zombie, so you set a default for the argument variable
[09:51]<rdvxzrwff>so the password field becomes optional
[09:51]<rdvxzrwff>function authenticate($username, $passwd=null)
[09:51]<mrgp_wn6n>($username, $.... yes
[09:51]<zjd2yn>But the Contents of the variable System AUTH_TYPE will change to 'Negotiate'"
[09:51]<mrgp_wn6n>as cythrawll said
[09:52]<zjd2yn>If User name and password are used, then AUTH_TYPE will be set to 'Basic'
[09:52]<zjd2yn>If Alternative Credentials are used, AUTH_TYPE will change to 'Negotiate'
[09:53]<rdvxzrwff>so what your wanting to do is...
[09:53]<mrgp_wn6n>What do you mean by alternative credentials? just username?
[09:53]<mrgp_wn6n>please be clear when explaining
[09:53]<zjd2yn>They take place in the form of a Ticket.
[09:54]<rdvxzrwff>waht is "THEY"
[09:54]<rdvxzrwff>the credentials?
[09:54]<zjd2yn>The alternative credentials take place in the form of a Ticket.
[09:54]<rdvxzrwff>kerberos?
[09:55]<zjd2yn>Yes, but PHP is incapable of processing a Kerberos Ticket.
[09:56]<rdvxzrwff>I'd watch those words mister
[09:57]<zjd2yn>I don't know of any way of making Kerberos do that.
[09:58]<rdvxzrwff>do what?
[09:58]<zjd2yn>I don't know of any way of making PHP check the ticket the User has against the local Keytab
[09:58]<zjd2yn>So.
[09:58]<vmmwno9q>what is the if(!isset(cmd)) do?
[09:58]<vmmwno9q>I mean $cmd
[09:59]<mrgp_wn6n>check if a variable is not set
[09:59]<mrgp_wn6n>is null, empty, or false... correct me if wrong...
[10:00]<zjd2yn>All I have to do is convince it that Apache knows what it is doing.
[10:00]<zjd2yn>Do you understand me?
[10:00]<zjd2yn>Its a simple solution to a complicated problem.
[10:01]<zjd2yn>cythrawll: ?
[10:02]<zjd2yn>Here we go again.
[10:02]<rdvxzrwff>heh, i'd have to play with whatever system your messing with, I've not seen anyone attempt to use kerberos before with php, I've seen it happen with PAM, (pam can use krb)
[10:03]<rrgne>hi, if in he DB id is auto_increment, I don't need insert id value in the php script?
[10:03]<zjd2yn>I know. I do that.
[10:03]<zr2nfmr2fn>anyone ever experience any slowness issues with apache, cronolog and php ?
[10:03]<rdvxzrwff>I think this is more of an apache/krb problem than a php problem
[10:03]<zjd2yn>cythrawll: Its not.
[10:03]<rdvxzrwff>rabeldable, never
[10:03]<zjd2yn>The Apache and Kerberos part is taken care of.
[10:04]<rrgne>hi, if in he DB id is auto_increment, I don't need insert id value in the php script?
[10:04]<mrgp_wn6n>yes, you dont
[10:04]<mrgp_wn6n>its automatic
[10:05]<rrgne>and, if I use a PEAR::MDB2? :D
[10:05]<rdvxzrwff>janez like: INSERT INTO table VALUES('','stuff','stuff','stuff')
[10:06]<zjd2yn>cythrawll: Hello? I wish you wouldn't brush me off.







