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 >
[09:45]<sydjgq1>notjosh: i pasted teh code into #flood can you understand that (code)?
[09:45]<sydjgq1>notjosh: i dont see any error.
[09:46]<eyzau>simon23: use a pastebin
[09:46]<sydjgq1>l.
[09:46]<sydjgq1>k.
[09:46]<gavaasx>simon23: http://pastebin.ca/
[09:46]<anuazdgnj>zircu: i paste here the link?
[09:46]<anuazdgnj>where i paste it?
[09:47]<fyr>Azucryneo, msg the bot pastebin - it will give a listing
[09:47]<fyr>Azucryneo, /msg php-bot pastebin
[09:48]<eyzau>lig: heh you're like me.. i hate the tell feature.. i end up typing the instructions
[09:48]<anuazdgnj>someone can tell-me how to convert a print_r to a flat string?
[09:48]<gavaasx>print_r($var, true);
[09:48]<fyr>hehe - never can remember the commands zircu
[09:48]<anuazdgnj>hm
[09:48]<gavaasx>well
[09:48]<gavaasx>define 'flat'
[09:48]<anuazdgnj>a simple string
[09:48]<anuazdgnj>with all the print_r content inside of it
[09:48]<eyzau>~!tell lig about zircu
[09:48]<gavaasx>define 'simple' :P
[09:48]<anuazdgnj>all the array
[09:49]<anuazdgnj>exploded
[09:49]<anuazdgnj>independent if it have the array names or not
[09:49]<gavaasx>you want to return the contents into a variable, instead of outputting?
[09:49]<anuazdgnj>yes
[09:49]<gavaasx>$string = print_r($var, true);
[09:49]<gavaasx>http://php.net/print_r
[09:49]<anuazdgnj>because i will do a preg_match inside of it
[09:49]<eyzau>hmm
[09:49]<anuazdgnj>wow, o.O
[09:49]<anuazdgnj>so easy?
[09:50]<eyzau>it would be easier if array_walk was used
[09:50]<gavaasx>might not be the best format for you to search on, but that'll return the string..
[09:50]<dddrcj>if I have two variables, $a = 'a' and $b = 'b' will echo ($a>$b)?'$a comes before $b':'$b comes before $a'; work as expected (i.e. can > and < be applied to character/string data?)
[09:50]<anuazdgnj>cool man!
[09:50]<anuazdgnj>it worked
[09:50]<anuazdgnj>:L
[09:50]<anuazdgnj>:)
[09:50]<gavaasx>neat :]
[09:50]<anuazdgnj>huh]
[09:50]<anuazdgnj>after3:30 hours
[09:51]<sydjgq1>notjosh: http://pastebin.ca/92115 (file one shouldnt have errors, the error comes with the included file !?..)
[09:52]<gavaasx>miyako: http://www.php.net/manual/en/language.operators.comparison.php
[09:53]<eyzau>simon23: use && instead of AND (not the issue you are having though)
[09:53]<alnr>missing a closing } in that one too
[09:53]<eyzau>since php3.07b i've used AND mabey 4 times
[09:53]<sydjgq1>notjosh: heres the file with the error http://pastebin.ca/92117
[09:54]<gavaasx>simon23: '<? php' needs to be '<?php'
[09:54]<dddrcj>thanks notjosh, was having a hard time finding that in the manual.
[09:54]<alnr>again, missing a closing }
[09:55]<wjlllrws>should be in php.net/tut
[09:55]<gavaasx>miyako: np. from what i understand, it'll convert the strings to the number 0
[09:55]<gavaasx>jpeg: i assume they're just code snippets..
[09:55]<alnr>then why bother pasting?
[09:55]<alnr>paste verbatim or don't bother. it's useless.
[09:55]<sydjgq1>notjosh: thank you very much !! have already searched for hours and hours... couldnt find it :)
[09:56]<eyzau>jpeg: i think he cut the rest of the code in the examples
[09:56]<gavaasx>simon23: no problem :]
[09:56]<eyzau>heh.. i'm slow
[09:56]<eyzau>i'll blame my one bar on my wireless :)
[09:56]<sydjgq1>bye
[09:56]<gavaasx>haha
[09:57]<dddrcj>it says that it performs lexical comparisons, and converts numbers to numeric types- so "a">"b" should return true. I'm not sure what would happen with "B">"a" but all of my data is lowercase, so it shouldn't matter to me anyway.
[09:58]<gavaasx>hmm
[09:58]<gavaasx>do some experiments, i guess.. nothing to lose :]
[09:58]<dddrcj>yeah
[09:59]<zyaxacf>Can anyone see any obvious reason that this regex isn't matching properly? It works fine on single-line, but not on multi-line. preg_match_all("/\@{([^}\@].*?)}\@/m", $output, $matches);
[09:59]<gavaasx>haha
[09:59]<gavaasx>god i hate regex
[09:59]<gavaasx>debugging regex*
[10:00]<eyzau>miyako: basically ord('B') > ord('a');
[10:00]<eyzau>miyako: and considering the ascii table comparisons like that arn't going to work a lot of the times
[10:01]<dddrcj>yeah, just did a test, it should be < instead of > for what I want, but it's working as I hoped
[10:01]<gavaasx>strtolower() is your friend :]
[10:02]<dddrcj>completely off topic, but I wish more text editors had an option to work like vi, it would make it so much easier to edit code while still being able to use an IDE
[10:02]<gavaasx>work like vi?
[10:02]<eyzau>i just use vim.. it works like vi rather nicely :)
[10:03]<gavaasx>hehe
[10:03]<gavaasx>zde 4lyfe
[10:04]<alnr>i've heard there's a vim-mode for emacs :)
[10:04]<dddrcj>well, I like vim for editing code
[10:04]<dddrcj>but I also like having an IDE
[10:04]<dddrcj>so I wish I could just pry the text editor out of Eclipse and stick vim in there
[10:04]<dddrcj>I think KDevelop can do that, but it doesn't work for PHP as far as i know
[10:07]<gavaasx>oic
[10:07]<gavaasx>what is it about vi you love so much?
[10:07]<dddrcj>yeah, once I found out emacs had a vi mode, I realized that the old joke "Emacs would be a great OS if only it had a decent text editor" would have to be killed
[10:07]<gavaasx>i never really got the attaction
[10:07]<gavaasx>haha
[10:09]<dddrcj>well, I like the fact that I can edit code really fast with it. Being able to do regular expression based search and replace, scroll through the text by lines, or by code blocks, etc. and not have to take my hands off the keyboard
[10:09]<dddrcj>maybe I should just get one of those laptop style keyboards with the mouse built in for my desktop
[10:09]<dddrcj>of course I hate those mice, so I would still complain lol
[10:09]<eyzau>notjosh: to do most things my hands hardly leave the home row of the keyboard.. i'm lazy that way
[10:10]<fyr>later all - time for VACATION!
[10:10]<gavaasx>hm, i guess i was just bad at knowing all of the shortcuts :]
[10:10]<eyzau>emacs had to many chars to press to get it to do something
[10:11]<fyr>see ya in about a week
[10:11]<gavaasx>bye lig,
[10:11]<gavaasx>have a wonderful time :]







