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-12
Pages: 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
Next >
[00:00]<igrerm>An example of $liens = "www.google.ca\nwww.rds.ca"
[00:00]<igrerm>I want for each line, an active link..
[00:00]<igrerm>Do you understand me ?
[00:00]<tjufgg>ugh
[00:00]<tjufgg>why do i suck so much
[00:01]<grvddlyrgj>Because you're a vacuum cleaner?
[00:01]<tjufgg>perhaps
[00:01]<cdrnjw>Touqen: echo '<a href="http://'.$liens.'">'.$liens.'</a>'; ?
[00:01]<snvrglnv>php.net/explode
[00:02]<fynvu>Inazad: $ar = explode("\n", $liens); foreach $liens ....
[00:02]<tjufgg>CyaNox: wrong person
[00:02]<fynvu>er, forexach($ar) ofcoz
[00:02]<igrerm>But, my vars $liens in the DB is like
[00:02]<cdrnjw>Touqen: he he ... sorry
[00:02]<igrerm>www.rds.ca
[00:02]<igrerm>www.google.ca
[00:02]<igrerm>lietu, how I can write it ?
[00:02]<cdrnjw>hten combine mine and lietu's example.
[00:02]<fynvu>Inazad: http://php.net/explode
[00:02]<tjufgg>ugh, I've got to call my mom and ask for money, i feel so pathetic.
[00:02]<fynvu>Inazad: http://php.net/foreach
[00:03]<igrerm>lietu, I'm not good in english
[00:03]<fynvu>or whatnuts
[00:03]<pjuzrv>hello all
[00:03]<gydl_>Inazad: $links = explode("\n", $lines); foreach($links as $key => $value) echo "<a href=\"$value\">$value</a>";
[00:03]<fynvu>Inazad: well if there's a finnish translation of most php.net manuals there propably is a french one too
[00:03]<igrerm>ok
[00:03]<pjuzrv>how can i parse a function, something like this : execute_php_code("$a = 1 + $b;");
[00:03]<igrerm>Gimp_, but $value is $liens ?
[00:03]<ayzzsvnz>there is indeed a french one
[00:04]<fynvu>Inazad: no, it's not
[00:04]<gydl_>Inazad: try it EXCACTLY as i just gave you.
[00:04]<gydl_>it will work
[00:04]<igrerm>Gimp_, ok
[00:04]<gydl_>Inazad: t'es français?
[00:04]<igrerm>Gimp_, oui , quebecois
[00:04]<ayzzsvnz>dear lord :p
[00:05]<fynvu>oh my
[00:05]<ayzzsvnz>a "Canadian"
[00:05]<pjuzrv>any help please ?
[00:05]<ayzzsvnz>fourat, you want to commit suicide by using exec()
[00:05]<tjufgg>fourat: eval
[00:05]<ayzzsvnz>er
[00:05]<ayzzsvnz>yeah
[00:05]<gydl_>Inazad: ok, pour foreach, ca fais $array = array("key" => "value); oui? allors, un foreach, ca loop le array, et fait foreach($array as $key => $value)
[00:05]<ayzzsvnz>i'm out of the loop :p
[00:06]<ayzzsvnz>eval exec, it's all the same to me
[00:06]<fynvu>Gimp_: take it in private if you're planning on not using english, please?
[00:06]<igrerm>Gimp_, ok mais regarde
[00:06]<pjuzrv>Touqen, that's it :)
[00:06]<gydl_>ca juste coupe le array, et place dans les variables uniques.
[00:06]<igrerm>Gimp_, viens en pb
[00:06]<gydl_>lietu: alright, sorry.
[00:06]<wjlllrws>!+english
[00:06]<svjzd2jv>##PHP is an English only channel. If you need support in some other language, please try elsewhere.
[00:12]<ayzzsvnz>quiet now :p
[00:18]<wjlllrws>Hey! The music isn't THAT bad :(
[00:21]<svgfxgfvjg>lol
[00:21]<tjufgg>anyone want to send me $100?
[00:22]<wjlllrws>Touqen: Want to send me application?
[00:22]<wjlllrws>I mean homework? :3
[00:22]<jdddd>Touqen what's my ROI ?
[00:22]<tjufgg>100%
[00:22]<tjufgg>You get back what you invested.
[00:22]<azdjzyaas>Anyone need code? Doing every language concievable.
[00:23]<gwrylj>finally, someone who can do my ocaml coding...
[00:23]<svgfxgfvjg>Wolfpaws, are you learing php in school?
[00:23]<wjlllrws>stephelton: Who said anything about school?
[00:23]<azdjzyaas>Okay, swap that to Lua, Python, C, C++, Java, PHP, Perl, and Bash.
[00:23]<jdddd>Touqen screw that... MINIMUM > 500%
[00:24]<azdjzyaas>And... possibly lisp. Depends on how hard the lisp is.
[00:24]<tjufgg>gah
[00:24]<svgfxgfvjg>Wolfpaws, you mentioned application and then corrected yourself "homework"
[00:24]<wjlllrws>Yay! Programming in Bash!
[00:24]<gwrylj>bash is funj
[00:24]<gwrylj>-j
[00:24]<gwrylj>ksh is cool, too
[00:24]<tjufgg>like a root canal
[00:24]<wjlllrws>stephelton: Tat's not necessarily connected to school...
[00:24]<azdjzyaas>The... korn shell?
[00:24]<xpgzg> /msg php-bot guidelines
[00:24]<azdjzyaas>Wolfpaws: Ehm yes it is.
[00:25]<wjlllrws>no, /msg stormbot guidelines... Check /topic
[00:25]<jdddd>hfern: /msg stormbot guidelines
[00:25]<wjlllrws>kamoricks: no it isn't... Y can get "homework" at work as well...
[00:25]<xpgzg> /msg stormbot guidelines
[00:25]<svgfxgfvjg>Wolfpaws, well thats why i asked
[00:25]<wjlllrws>*You
[00:25]<wjlllrws>hfern: ...
[00:26]<wjlllrws>I'm thinking: "What the hell...?"
[00:28]<vdlvzz>can anyone guide me in finding some code to find the beginning of the week by a timestamp?
[00:28]<tjufgg>get the day of week indicated by the timestamp and then subtract that many days from the timestamp
[00:28]<tjufgg>and whammo, you've got the start of the week
[00:28]<vdlvzz>ah, ty much
[00:28]<fzjfxyfn>while ( date ( "w", $timestamp ) != 0 ) $timestamp--;
[00:29]<fzjfxyfn>that'd take bloody ages
[00:29]<fzjfxyfn>but it would work
[00:29]<vdlvzz>haha, thanks
[00:32]<azdjzyaas>prophile: Why? That's only 7 executions.
[00:32]<fzjfxyfn>kamoricks: no, it's not. timestamps represent seconds.







