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-09
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
Next >
[15:53]<rfvr>there's no delimiter
[15:53]<rfvr>and you're escaping "
[15:53]<[gabri]>where i cna put a delimiter?
[15:53]<rfvr>preg_match_all('/class="grande"><b>(.*?)°/'
[15:54]<[gabri]>thanks alta
[15:55]<rfvr>np :)
[15:58]<-- gjmrm9ww xrs fuyv>http:www.devmatrix.org")
[15:58]<nsjvnzyaysds>is there a function to determine if an variable is an object or an array?
[15:58]<nsjvnzyaysds>number, string, etc...?
[15:59]<xzzvduv>get_type() or something
[15:59]<xzzvduv>php.net/get_type BINGO
[15:59]<nsjvnzyaysds>gettype ... thanks :)
[16:04]<lsmxnrm>i am writing a php application and need to be able to test if a user is authenticated with joomla (latest version), how is this done? i understand it is related to the session cookie but since the security modes were updated i do not know how to do this. can anyone assist?
[16:05]<wjlllrws>!+g10
[16:05]<lxl-2jv>Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts. Contact the authors of the script for support options they provide.
[16:06]<dyrrrry>how come when i do... __echo $width + 40;__ it works but when i try to change __width="'.$width.'"__ it doesnt work?
[16:06]<wjlllrws>where is the $?
[16:07]<dyrrrry>um.. brb having troubles with mirc
[16:08]<dyrrrry>i tried changing it to i tried changing it to width="'.$width + 40.'"
[16:08]<tzjzmjzw>How do i search for a string in an array?
[16:08]<dyrrrry>and it says im supposed to have ; somewhere
[16:08]<dyrrrry>but if i take out the + 40 it's fine
[16:08]<tzjzmjzw>The key in question has the value "[XX:XX:XX] <Nick> Message"
[16:09]<tzjzmjzw>I want to search for only the nick.
[16:09]<-- 2yd2nzy xrs fuyv>http://iownmymusic.org/ http://iownmydvds.org/")
[16:09]<tzjzmjzw>Is that possible?
[16:09]<tzjzmjzw>Lets say it's...
[16:09]<tzjzmjzw>[03:21:42] <Trapdoor> hi guys
[16:09]<tzjzmjzw>And that's in an array, how do i search for only the nick?
[16:10]<wjlllrws>Trogdorx: Abuse the enter one more time, and I'll kick you out
[16:10]<drgd>you split the string, write it to sql and later search in sql
[16:11]<wjlllrws>heh
[16:11]<tzjzmjzw>It's a 1-2mb chat log, i'm not going to put that into SQL.
[16:11]<drgd>*g*
[16:12]<drgd>ive seen people logging irc into sql
[16:12]<tzjzmjzw>can i search with regex in an array?
[16:12]<wjlllrws>preg_grep
[16:13]<tzjzmjzw>array preg_grep (string pattern, array subjects) returns an array that contains all the strings in the array "subjects" that can be matched by the regular expression pattern.
[16:13]<tzjzmjzw>But can i get this return the key in the array?
[16:13]<dyrrrry>can anyone tell me what's wrong with this? width="'.$width + 40.'"
[16:14]<tzjzmjzw>width = $width + 40;
[16:14]<wjlllrws>no
[16:15]<wjlllrws>width="'.($width + 40).'" ...
[16:15]<dyrrrry>thanks
[16:15]<tzjzmjzw>Huh?
[16:15]<nsjvnzyaysds>anyone know of an AES encryption class?
[16:15]<tzjzmjzw>Why is that correct and not my solution?
[16:15]<wjlllrws>Trogdorx: Because one is parse error and one isn't.
[16:16]<tzjzmjzw>Touché.
[16:17]<wjlllrws>Esotericisms: php.net/mcrypt
[16:19]<nsjvnzyaysds>I don't see AES, oh wait is the RIJNDEAL AES?
[16:19]<rrvrnjrj>yes
[16:26]<tzjzmjzw>great
[16:26]<tzjzmjzw>i got it to work
[16:34]<yvzz>I have a file saved as iso-8859-1 and in it I run strftime('%c', $unix_timestamp) and it prints some scandinavian characters for the weekday... but they won't show correctly
[16:34]<yvzz>I have told PHP to use latin1 internally.. but it doesn't seem to fix it
[16:37]<rzujryvrn>Me and my mate are working on a website.. a site which would provide solutions to IT problems. We dunno how to call it. First we though itproblems, but that ain't attractive enough, than getoverit.com, but that ain't good either. Could you give me some ideas?
[16:37]<yvzz>the text file really is latin1... but if I in the html-header specify it as utf8 strftime works
[16:37]<rzujryvrn>you know, something attractive.
[16:38]<xrwcrfjjryn>itallover.com
[16:38]<fusxuyrr>cruocitae: try latin
[16:39]<fusxuyrr>getoverit, cybersquashed with getovertit
[16:39]<rzujryvrn>cybersquashed? what does that mean?
[16:39]<fusxuyrr>*cybersquatted'
[16:40]<fusxuyrr>a domain name that looks like a popular domain name (typos) to gain clients/viewers
[16:41]<sajvv6>k friends, how i setup a header for utf encoded pages, without dropping any other header thingys?
[16:41]<sajvv6>utf8**
[16:42]<rzujryvrn>Fushuing: what d'ye mean "try latin"? I dunno latin.
[16:44]<dyrrrry>is $_GET only for forms?
[16:46]<dyrrrry>nvm i figured it out
[16:47]<sajvv6>this header shit sucks
[16:47]<wjlllrws>it does?
[16:48]<znfnsv>they should add a OR thingie into PHP..
[16:48]<sajvv6>if i call the header() function (inside a tree of functionsi get the whole html source in my browser, no page
[16:49]<sajvv6>brb
[16:49]<znfnsv>like 'if ($foo == $bar) { ... } or { ... }'
[16:49]<znfnsv>would make it so much more exciting :D
[16:49]<2ufyj>is there a guide I can use for upgrading from PHP4 to 5?
[16:51]<gvne>bulio, what OS are you running?
[16:53]<2ufyj>Linux
[16:59]<nsjvnzyaysds>when I use preg_match on my site run under apache and mod_php4 .. it works, but when I try to run a php file under fast-cgi php-cgi preg_match is undefined, can anyone help
[17:02]<tzjzmjzw> $pattern = '/(..):(..):(..)/';
[17:03]<tzjzmjzw>will that work?
[17:03]<tzjzmjzw>it's formatted like this
[17:03]<tzjzmjzw>[04:41:02]
[17:04]<tzjzmjzw>yes it will
[17:04]<tzjzmjzw>sweet
[17:04]<cndns_>hello i've a problem with htmlspecialchars :
[17:04]<cndns_> htmlspecialchars ('Punk\'s not dead', ENT_COMPAT, 'UTF-8');
[17:05]<cndns_>return 'Punk\'s not dead
[17:05]<cndns_>instead of Punk's not dead
[17:05]<cndns_>why is the ' escaped ?
[17:05]<zryddrg>keyes_,
[17:05]<zryddrg>try this htmlspecialchars ("Punk\'s not dead", ENT_COMPAT, 'UTF-8');
[17:05]<fusxuyrr>keyes_: try putting it between "";s
[17:06]<fusxuyrr>raidman: why the htmlspecialchars?
[17:06]<cndns_>Fushuing, don't work too ;)
[17:06]<fusxuyrr>keyes_: i'm afraid it will







