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-16
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
Next >
[04:24]<rfruajgvnax>how do you escape a % in sprintf ?
[04:26]<nzya>i have a newbie question on character encoding if someone has a moment
[04:27]<zdzxzzmfdgzx>glaucontech: %% http://php.net/sprintf
[04:27]<zdzxzzmfdgzx>!+ask
[04:27]<nzya>i should type that? :)
[04:28]<rfruajgvnax>thx richardlynch
[04:28]<mrvbjd>richard, any idea ?
[04:28]<mrvbjd>richardlynch, any idea ?
[04:28]<zdzxzzmfdgzx>MatBoy: preg_replace_all ??? I don't even understand the question..
[04:30]<mrvbjd>richardlynch, I have a variable, 80 (port 80) that I get from an array because I want to check more ports. with a foreach ($ports as $port_value) I parse the $port_value because I need ports some more times for other script-parts
[04:30]<mrvbjd>richardlynch, So I want to rename 80 to WWW
[04:31]<mrvbjd>richardlynch, did it yesterday the way I described... change dthe code and don;t have my test anymore :(
[04:31]<zdzxzzmfdgzx>MatBoy: $known_ports = array('www' => 80, 'ftp'=>25);
[04:31]<[zzygmcz]>ftp:25?
[04:32]<mrvbjd>nah, that is SMTP :)
[04:32]<mrvbjd>21
[04:32]<zdzxzzmfdgzx>cat /etc/services
[04:32]<zdzxzzmfdgzx>how the hell should I know the magic numbers?
[04:32]<zdzxzzmfdgzx>:-)
[04:32]<mrvbjd>richardlynch, no excuss :p
[04:32]<mrvbjd>hehe
[04:32]<mrvbjd>but no problem !
[04:32]<[zzygmcz]>richardlynch: ftp:20,21
[04:33]<mrvbjd>20 is for Passivemode
[04:33]<zdzxzzmfdgzx>Maybe MatBoy needs a parser for /etc/services :-)
[04:33]<mrvbjd>maybe richardlynch need a new IT-book... I will buy one for PHP again :P
[04:33]<mrvbjd>hehe
[04:34]<z1vfm>Your PHP installation does not seem to have the required GD library, which is needed to use the reports module.
[04:34]<zdzxzzmfdgzx>Book? Who uses a book? http://php.net/manual and http://info.com/ are all I used.
[04:34]<zdzxzzmfdgzx>r3vld: Seems pretty clear.. You didn't isntall GD. Install it.
[04:34]<mrvbjd>richardlynch, but in that way I can change port 80 to WWW and just parse the $known_ports ?
[04:34]<z1vfm>i tried too
[04:34]<z1vfm>but no good
[04:35]<sdrjprgv>The PHP online manual is by far the best for an language I've seen
[04:35]<zdzxzzmfdgzx>$port = isset($known_ports[$key]) ? $known_ports[$key] : NULL;
[04:36]<mrvbjd>richardlynch, I want to know why we yester could do it so easy !
[04:36]<zdzxzzmfdgzx>Yep, php online manual rocks. I'd say the best dead-trees language book is Common Lisp, the Language by Guy L. Steele. You can read that just for fun.
[04:36]<mrvbjd>does someone have a log of yesterday from here ?
[04:36]<zdzxzzmfdgzx>I think God has one.
[04:36]<mrvbjd>can I just ping god ?
[04:36]<sdrjprgv>richardlynch: You like writing shorthand if/else statements?
[04:36]<sdrjprgv>I've never liked them.
[04:36]<zdzxzzmfdgzx>you know we're joking, right?
[04:37]<mrvbjd>own damn, guy's it's late here
[04:37]<zdzxzzmfdgzx>Sycofant: You are on your own for converting them into 6 lines of code. It should not be taxing.
[04:37]<mrvbjd>3:37 am
[04:37]<mrvbjd>richardlynch, stop joking :P damn...
[04:37]<mrvbjd>:D
[04:37]<sdrjprgv>* [GOD] (n=cyrus@64.34.162.98): Cyrus Lopez
[04:38]<zdzxzzmfdgzx>I do not know of a log for ##php.
[04:38]<mrvbjd>richardlynch, maybe someone has to much HD-space and has turned his log-option on :)
[04:38]<sdrjprgv>Sycofant: Indeed - I've been writing a lot of if/else stuff lately, but I still don't really like the shorthand version.
[04:38]<zdzxzzmfdgzx>MatBoy: Anything is possible.
[04:38]<sdrjprgv>I can't parse it in my head as quickly :)
[04:38]<mrvbjd>richardlynch, indeed... even I am possible :D
[04:39]<zdzxzzmfdgzx>Sycofant: I'm sorry for you, but I'm not about to type 6 lines of cruft for your convenience :-)
[04:39]<zdzxzzmfdgzx>Especially not in IRC :-)
[04:39]<sdrjprgv>MatBoy: I just turned on logging - but I don't idle here.
[04:39]<zdzxzzmfdgzx>MayBoy: Maybe you could pastebin your current code, and get some help again... but I'm heading out.. Sorry.
[04:39]<sdrjprgv>richardlynch: No no, quite alright of course - I was just wondering how you feel about them generally.
[04:39]<mrvbjd>Sycofant, mhh was you yesterday online here about 3 pm ?
[04:40]<sdrjprgv>What timezone?
[04:40]<mrvbjd>Brussel
[04:40]<sdrjprgv>Or more specifically, what time GMT
[04:40]<mrvbjd>so 9am in the US
[04:40]<sdrjprgv>It's 1:40pm Friday where I am, so I dnno.
[04:40]<mrvbjd>what do we have here, +2 ? I thought
[04:40]<zdzxzzmfdgzx>Sycofant: I've been using the ternary operator since 1981-ish, so I'd say I'm pretty comfy with it, yes.
[04:41]<sdrjprgv>See, I was not really programming then - and earlier languages I used didn't make much use of them - so I guess that's my handicap.
[04:41]<mrvbjd>Sycofant, +2 :)
[04:42]<sdrjprgv>So, that would be about, uh 5am for me. So nope.
[04:42]<zdzxzzmfdgzx>I'm just too lazy to type 6 lines instead of a simple one liner, if the expressions are simple.
[04:42]<mrvbjd>you are from ?
[04:42]<sdrjprgv>New Zealand
[04:43]<mrvbjd>damn, that is ***** early there than !
[04:43]<mrvbjd>:)
[04:43]<sdrjprgv>We are GMT+12
[04:43]<sdrjprgv>or +13 in summer.
[04:44]<mrvbjd>damn
[04:44]<mrvbjd>Sycofant, but do you have any idea ?
[04:44]<sdrjprgv>Of what?
[04:44]<mrvbjd>I need a simple way of a str_replace
[04:44]<mrvbjd>so I don;t want to use str_replace
[04:44]<sdrjprgv>?
[04:45]<sdrjprgv>str_replace does what you want? So why not use hat?
[04:45]<mrvbjd>I know you can do it by just making an array where you remane the variable, like with a str_replace
[04:45]<mrvbjd>Sycofant, the problem is that that could not be used in the script
[04:46]<sdrjprgv>eregi_replace
[04:46]<mrvbjd>Sycofant, we didn't use anything of that
[04:47]<mrvbjd>only a array for the "change"
[04:47]<mrvbjd>and the variable $var=>$var2 or something
[04:47]<sdrjprgv>So you want to change what to what, and why can't you use ereg_replace or str_replace?
[04:48]<mrvbjd>because I used a foreach... dunno anymore... will try the str_replace again !
[04:48]<sdrjprgv>What are you actually trying to do though?
[04:50]<sdrjprgv>What IDEs do people use for PHP development?
[04:50]<sdrjprgv>Ideally free or open source?
[04:51]<pfjsc>hi
[04:51]<pfjsc>anyone can help me installing a mod in my forum? Cathegory hierarchy mod
[04:51]<pjffyvr>erm
[04:52]<sdrjprgv>Pollita: I meant IDE as in 'Integrated Development Environment' :)







