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-07-19
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
49
50
51
52
53
Next >
[19:56]<fgzgrgmjm>Julian|Work: only hours and minutes, i have to 08:00 and have to add 30 minutes until 17:00
[19:56]<wjlllrws>I like the PHP6 idea :)
[19:56]<jufyzg|wjzc>FernandoM, you don't need mktime(), just use math.
[19:56]<jufyzg|wjzc>FernandoM, you want increments of 30 minutes from 8:00 to 17:00?
[19:57]<fgzgrgmjm>yes
[19:57]<fgzgrgmjm>well
[19:57]<d1fry2sjg>you coudl always use strtotime
[19:57]<d1fry2sjg>to make it really trivial
[19:57]<fgzgrgmjm>depends of the users conf
[19:57]<z00svnz>is there soemthing obviously wrong with this:
[19:57]<z00svnz> $fh = if(!fopen($myFile, 'a')) {
[19:57]<fgzgrgmjm>mayber 10, 15 or 30 minutes
[19:57]<jufyzg|wjzc>I think "+ 30*60" is more trivial.
[19:57]<suv9w9>Julian|Work, it's less trivial
[19:57]<d1fry2sjg>$fh cannot have an if assinged
[19:57]<jufyzg|wjzc>FernandoM, are you trying to store timestamps?
[19:58]<d1fry2sjg>if is a language contruct
[19:58]<z00svnz>ahhh
[19:58]<suv9w9>Julian|Work, is the 60 minutes, seconds?
[19:58]<z00svnz>thanks
[19:58]<azgsaggmj>Julian|Work, I have $message = ( !empty($HTTP_POST_VARS['message']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message']))) : '';
[19:58]<jufyzg|wjzc>suv4x4, seconds in a minute.
[19:58]<fgzgrgmjm>Julian|Work: yes
[19:58]<pjffyvr>for($tm = strtotime('08:00'); $tm < strtotime('17:00'); $tm += 1800) echo date('G:i ', $tm);
[19:58]<d1fry2sjg>r00ster to do that differently do this
[19:58]<drfn_>Hello
[19:58]<suv9w9>Julian|Work, there you go, you need to tell me so I know, it's a magical constant.
[19:58]<jufyzg|wjzc>Pollita has it.
[19:58]<pjffyvr><= actually
[19:59]<drfn_>Dos anyone use phpdocumentator?
[19:59]<d1fry2sjg>if (FALSE !== ($fh = fopen($myFIle, 'a'))){
[19:59]<jufyzg|wjzc>suv4x4, I'm fairly comfortable assuming there will always be 60 seconds in one minute.
[19:59]<pjffyvr>but don't get caught up in details
[19:59]<jufyzg|wjzc>Crescendo, are you only storing this in a database and later displaying it?
[19:59]<drfn_>Dos anyone use phpdocumentator?
[19:59]<wjlllrws>!+g8
[19:59]<lxl-2jv>Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
[19:59]<jufyzg|wjzc>I'd recommend: mysql_real_escape_string(htmlspecialchars(trim($HTTP_POST_VARS['message'])))
[20:00]<wjlllrws>why mysqlspecialchars?
[20:00]<jufyzg|wjzc>trim the whitespace, then convert to htmlspecialchars, then escape the final result for a query.
[20:00]<drfn_>Dos anyone use phpdocumentator?
[20:00]<drfn_>hello!
[20:00]<wjlllrws>erf...
[20:00]<jufyzg|wjzc>Wolfpaws: yes, why? :]
[20:00]<drfn_>anyone here?
[20:00]<suv9w9>Julian|Work, pretty soon this will change, and then I'm coming back to laugh at you
[20:00]<drfn_>fuck sake hello!
[20:00]<jufyzg|wjzc>suv4x4, I'll be around I'm sure!
[20:00]<vznd2d>!tell Dale_ about g1
[20:00]<azgsaggmj>Julian|Work, Yeah, I believe so.
[20:00]<pjffyvr>Dale: We're not deaf, we just don't like you.
[20:01]<wjlllrws>:)
[20:01]<d1fry2sjg>lol
[20:01]<drfn_>go fuck your self
[20:01]<jufyzg|wjzc>The htmlspecialchars() and trim() are for your own requirements-- the mysql_real_escape_string() is for security.
[20:01]<drfn_>you nerd
[20:01]<jufyzg|wjzc>:(
[20:01]<ryddygxrgssjg>someone?
[20:01]<suv9w9>Wolfpaws, you didn't kick him but made him /part ?! What kind of opping is this? It's like secret service or something.
[20:01]<djgcndljj>what the hell you in here for then Dale_?
[20:01]<jufyzg|wjzc>He's warping my fragile little mind.
[20:01]<d1fry2sjg>is there a proper portable, available out the box on all PHP 2 way encryption function?
[20:01]<drfn_>I'm new to irc i dont know how to use it so i get abused?
[20:02]<d1fry2sjg>dale just be less abrasive
[20:02]<suv9w9>m3lgibson, dale is dead now
[20:02]<d1fry2sjg>indeed
[20:02]<suv9w9>we're sad, but screw it, he's dead and we're not
[20:02]<wjlllrws>the "fuck you nerd" just evicted him.
[20:02]<wjlllrws>caffinated: A black one? :)
[20:02]<d1fry2sjg>oh well, life goes on
[20:02]<pjffyvr>suv4x4: You gon't get kicked, you just.....dissapear....
[20:02]<wjlllrws>:3
[20:02]<suv9w9>m3lgibson, if you need something, you know who to turn to
[20:02]<suv9w9>m3lgibson, someone else
[20:02]<ryddygxrgssjg>if that doesn't work, you dissapear again
[20:03]<suv9w9>with this I complete my quotting ATHF
[20:03]<suv9w9>Pollita, yea, spooky no
[20:03]<rrppygrvnm>Wolfpaws: *shrug*
[20:03]<djgcndljj>it's weird... people with no manners
[20:03]<rrppygrvnm>i just wanted to break my 2 day idle time
[20:03]<wjlllrws>yay caffinated :)
[20:04]<djgcndljj>lol. you ever join that idlerpg room before?
[20:04]<djgcndljj>you level by just idling.
[20:04]<rrppygrvnm>that sounds like the rpg i could be really good at
[20:04]<wjlllrws>:)
[20:05]<djgcndljj>i forget where i saw the channel.
[20:05]<rrppygrvnm>suv4x4: put your chinese slave labor away. i don't think they use gold.
[20:06]<fyznfjw_>Is it true that php5 can't run on apache 2.2
[20:06]<d1fry2sjg>it *can*
[20:06]<d1fry2sjg>its just not wise
[20:06]<fyznfjw_>how :)??
[20:06]<fyznfjw_>and why isn't it wise
[20:06]<d1fry2sjg>because paache 2 was a rewrite
[20:06]<azgsaggmj>Julian|Work, I changed it to $message = ( !empty($HTTP_POST_VARS['message']) ) ? mysql_real_escape_string($HTTP_POST_VARS['message']) : '';
[20:06]<d1fry2sjg>and php was designed around apache 1
[20:06]<d1fry2sjg>the module i mean
[20:06]<azgsaggmj>Still getting the error.
[20:07]<d1fry2sjg>you could always run it as a binary
[20:07]<d1fry2sjg>but again







