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-07-17
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
Next >
[20:02]<rdvxzrwff>it will give you headaches
[20:02]<pgzsyfjg>cythrawll: I have --without-mysqli
[20:03]<pgzsyfjg>so how can I assure to have php using mysql 5 ?
[20:03]<ayzzsvnz>one of the mysql functions tells you the version
[20:03]<rdvxzrwff>Persilon it will have the mysql client and server version in phpinfo
[20:04]<rdvxzrwff>and without mysqli?? that's a shame
[20:04]<pgzsyfjg>cythrawll: I know, but phpinfo still shows mysql4
[20:04]<rdvxzrwff>don't know what yoru missing :D
[20:04]<pgzsyfjg>cythrawll: I'm a new sysadmin here, and it was like that, I won't touch it :)
[20:05]<rdvxzrwff>Persilion, i would guess having both versions of mysql, the library that is loading up by the system is version 4
[20:05]<rdvxzrwff>probably having a conflict there
[20:05]<pgzsyfjg>cythrawll: but isn't there anyway of forcing the use of mysql5 beside those configure parameters ?
[20:05]<rdvxzrwff>there's absolutly no good reason to have both anyway
[20:06]<svjzmvymn>ls
[20:06]<rxzysvus_rn>is there a php function that tells you how many elements are in an array?
[20:06]<rdvxzrwff>Persilon, yeah, make the OS load the right library
[20:06]<ayzzsvnz>sizeof or count
[20:06]<rdvxzrwff>christus_ae count()
[20:06]<pgzsyfjg>cythrawll: how ?
[20:06]<rxzysvus_rn>cythrawll: thanks
[20:06]<ayzzsvnz>i was first, nyah
[20:07]<pgzsyfjg>cythrawll: both mysql 4 and 5 are running
[20:08]<mzzcl>Persilon: phpinfo() saying Client API version 4.*.* is ok, it's not related to the MySQL version installed on the server.
[20:08]<mzzcl>Persilon: You can still use MySQL5 with that client API version
[20:09]<pgzsyfjg>MarkL: is there anyway of knowing if mysql5 is really working on php ?
[20:09]<dra>hi
[20:09]<mzzcl>Persilon: Access a MySQL5 db
[20:09]<zypvmgsyrg>does anyone use a particular backport of php5 on debian stable?
[20:09]<mzzcl>Persilon: I presume you have them running on 2 different ports?
[20:10]<pgzsyfjg>MarkL: yes
[20:10]<mzzcl>Persilon: Should be ok then, just use the right port when connecting
[20:10]<mzzcl>Persilon: I'm using MySQL5 with the client API 4.1.7
[20:10]<maffd>riftdesign: http://www.dotdeb.org/
[20:10]<zypvmgsyrg>McFly: do you use this?
[20:11]<maffd>I do
[20:11]<zypvmgsyrg>McFly: have they been good with security updates?
[20:11]<maffd>Can't help you there, it's on my local box and not really concerned...sorry
[20:14]<pgzsyfjg>MarkL: I'm gonna try doing a mysql query - thank you very much
[20:15]<mzzcl>Persilon: No problem, good luck
[20:15]<pgzsyfjg>MarkL: it'll be a little hard to explain my boss why it still says mysql 4.1.14 :P
[20:18]<mzzcl>Persilon: Just tell him the API version is unrelated to the MySQL version, then roll your eyes and tell him not to worry his pointy head over it ;)
[20:20]<pgzsyfjg>MarkL: :)
[20:21]<zdyzw`>is there a way to get the last 30 lines from log file?
[20:21]<maffd>tail -n
[20:22]<zdyzw`>php...
[20:23]<mzzcl>amir1`: $last = join("\n", array_slice(file('log.txt'), -30));
[20:23]<jeveygzvje>anyone know of a bug with globals not being global?
[20:23]<znzfdnzw>Ortzinator: what do you mean?
[20:24]<jeveygzvje>http://forums.punbb.org/viewtopic.php?id=12404
[20:24]<mzzcl>amir1`: Might wanna use <br /> instead of \n if you want to output it in the browser :o
[20:24]<amnnf>what is the php function to restrict length of a sentence and truncate the remaining part
[20:24]<jeveygzvje>wondering if it was a php bug
[20:24]<mzzcl>Adeel: substr() ?
[20:24]<amnnf>ah ok
[20:24]<amnnf>thnx
[20:25]<mzzcl>Ortzinator: Doesn't sound like a bug to me, more of a logic/coding problem
[20:26]<suzryg>is there a way to achieve an arraynumber from an array output? such as like $fruit(apple, banana, pineapple) if there a way to retrieve the arraynumber 2 from the input of pineapple?
[20:26]<maffd>array_search
[20:27]<mzzcl>array_search
[20:27]<mzzcl>doh
[20:27]<jdddd>!+arrays
[20:27]<lxl-2jv>[ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well.
[20:27]<suzryg>$fruits=array(. rather
[20:27]<suzryg>thanks
[20:27]<suzpmun>hehe
[20:27]<suzpmun>i like frunit
[20:27]<suzpmun>oops
[20:31]<pgzsyfjg>Now I'm trying to recompile 5.1.4 with imap support but I get this: php-5.1.4/ext/imap/php_imap.c:78: error: conflicting types for `utf8_mime2text'
[20:31]<sxzrvgg>I would like to say thanks for the help with my ad pull script
[20:32]<sxzrvgg>now I have another question..
[20:32]<mzzcl>Persilon: http://bugs.php.net/bug.php?id=37948
[20:32]<sxzrvgg>I want to write a script to keep track of the click thru's
[20:33]<sxzrvgg>but I am not sure what to do for a swf type of ad! any suggestions?
[20:34]<znzfdnzw>shraven: clickTAG is some kind of unofficial standard :)
[20:34]<sxzrvgg>I've never heard of it..
[20:34]<pgzsyfjg>MarkL: thank you very much, my boss should pay you my wage xD
[20:34]<mzzcl>Persilon: ;)
[20:34]<sxzrvgg>I'm looking it up..
[20:35]<znzfdnzw>shraven: basicly it means that on flash side you catch url passed to swf file via query string
[20:35]<znzfdnzw>shraven: that way you won't have to hardcode it into flash
[20:35]<sxzrvgg>realmerx: oh..
[20:35]<zdyzw`>MarkL= is there a way to show the last lines at the top? like desc
[20:36]<mzzcl>amir1`: $Try last = join("<br />", array_reverse(array_slice(file('log.txt'), -30)));
[20:36]<mzzcl>amir1`: But that's off the top of my head, so might not work ;)
[20:37]<znzfdnzw>shraven: clickTAG is just normal query string parameter and it could be named anything but usually flash developers name this variable clickTAG
[20:38]<znzfdnzw>shraven: http://www.adobe.com/resources/richmedia/tracking/designers_guide/
[20:38]<sxzrvgg>realmerx: I'm reading it now.. thanks...
[20:41]<jdddd>MarkL, "How can I use PHP to control this?" http://www.machineguns.co.nz/Products.shtml
[20:42]<mzzcl>Jymmm: ;)
[20:42]<mzzcl>Jymmm: That's a nice looking Gatling
[20:43]<mzzcl>Jymmm: You could use str_repeat('ratata', 5000);
[20:43]<jdddd>ROTFLMAO!!!
[20:43]<jdddd>MarkL, http://www.gatlingguns.net/gallery.htm
[20:44]<mzzcl>Jymmm: Thinking of buying one?
[20:44]<sggsgy>What's rotflmao about that?
[20:44]<jdddd>MarkL, No, making one. As soon as I get a large enough lathe
[20:44]<mzzcl>:o
[20:44]<drvvdaa>Jymmm: Quite an antique there.
[20:45]<jdddd>mattmcc, It's new.







