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-19
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
Next >
[00:03]<vxggygvxcuv>diogo86, did you look at my page?
[00:03]<myjrjo7>TheNinthCut, send it again
[00:03]<vxggygvxcuv>Can't figure out how to specify specific arrays out of that MySQL Fetch ASSOC.
[00:03]<vxggygvxcuv>diogo86, http://theninthcut.com/charactervotest.php
[00:03]<vxggygvxcuv>diogo86, http://theninthcut.com/charactervotest.phps
[00:04]<vxggygvxcuv>Second one my bad.
[00:07]<myjrjo7>TheNinthCut, http://pastebin.com/717184
[00:10]<vxggygvxcuv>diogo86, damn you're good.
[00:12]<myjrjo7>TheNinthCut, why don't you echo inside the fist block instead of creating an array and then doing foreach?
[00:13]<vxggygvxcuv>diogo86, I don't know because I was told it was bad to embed big PHP like that in my Markup.
[00:13]<vxggygvxcuv>And to put it at the top...
[00:13]<myjrjo7>TheNinthCut, indeed. that's a good Why :)
[00:19]<myjrjo7>TheNinthCut, you should read about object oriented programming; you can completetly separate design from php business code still optimizing it.
[00:27]<vxggygvxcuv>diogo86, could you point to some documentation to start with?
[00:28]<zndy_wjfnz>hmm, 653 queries per second/avg... Not bad
[00:29]<myjrjo7>TheNinthCut, well php.net/manual is the start for the syntax and stuff. however i don't anything in english to recommend you
[00:29]<npyvnpjzan>eh does somebody know how to convert umlauts into html entities like ü ?
[00:30]<pzggjgg1000>html_encode_entities(), I believe.
[00:31]<cryggrvyjg>an i join ##php directly how?
[00:31]<szazj>kainnation: /join ##php
[00:31]<gzznvxzdzds>kainnation: you did
[00:31]<zndy_wjfnz>kainnation: /join ##php
[00:32]<mrvbjd>Is MRTG generating a lot of data in MB's ? I mean size on the disk ? It depends on how much you want to monitor, but OK
[00:32]<cryggrvyjg>stupid message
[00:32]<gzznvxzdzds>kainnation: even if you join directly you still get the message
[00:32]<cryggrvyjg>oh ok thnx :)
[00:32]<myjrjo7>eliteforce, htmlentities()
[00:35]<svzzwzzs>Me Guru
[00:37]<dv1>Hi people
[00:37]<dv1>On my web site I have an image verification thing Is there any module that lets me have an audio thingy too for blind people?
[00:38]<cryggrvyjg>xml :)
[00:38]<cryggrvyjg>my answer to everything lol
[00:38]<dv1>How would I go about it?
[00:38]<ajdn>mt3: A text-to-speech, generating a wave
[00:38]<dv1>XML can't be a valid answer to how do you get foliage out of my honeykins
[00:39]<cryggrvyjg>you could have an xml file that if a is in the key you'd have an xml file with like <character>a</character><audio>../../audio/a.wav</audio>
[00:39]<dv1>Oh... Hmmm... It's 20 to 11... I'm err very very late lol
[00:39]<dv1>c you ple tmoz
[00:40]<cryggrvyjg>then just use the dom and foreaches to read the xml and if letter = a display the character then have a link to "hear" the key
[00:40]<cryggrvyjg>and basically have it play each audiofile selected in succession
[00:40]<cryggrvyjg>flash might work well
[00:40]<cryggrvyjg>for building the audio and playback
[00:41]<pzggjgg1000>mt3: Why not?
[00:43]<myccnfrnv>Hi, using mysql with php. Error: "Table 'name' is read only", it has perm 644, and Im the owner, where is the readonly perm set?
[00:44]<gyrayg>whats the string->int function in php?
[00:44]<mzzcz9q>MikkelRev: MySQL tables permissions are not stored in the filesystem
[00:44]<gzznvxzdzds>Niacin: conversion is done automatically when you need an int
[00:44]<mzzcz9q>If you've been chmodding the MySQL data files, don't. Revert them.
[00:44]<gzznvxzdzds>but you can cast by putting (int) in front of the variable IIRC
[00:45]<gyrayg>GarethAdams: I'm trying to check a string to see if it contains purely ints
[00:45]<myccnfrnv>Mark: where do i give rw access then?
[00:45]<myjrjo7>MikkelRev, http://dev.mysql.com/doc/refman/5.0/en/grant.html
[00:45]<mzzcz9q>Use the GRANT command as shown in the manual.
[00:45]<mzzcz9q>the message "Table is readonly" might also happen for other reasons
[00:45]<gzznvxzdzds>Niacin: is_numeric, I think
[00:45]<mzzcz9q>But whatever you do, don't chmod MySQL's files
[00:45]<wjlllrws>MatBoy: This ist's a channel apropriate for discussion of MRTG or things related or non-related
[00:45]<ryjnfn2>hi
[00:45]<myccnfrnv>Niacin: is_int()
[00:46]<myccnfrnv>Mark: ok, thanks
[00:46]<ryjnfn2>is it possible to remove the attribute "xmlns" from a DOM element in PHP5?
[00:46]<mrvbjd>Wolfpaws, late reaction ;)
[00:46]<wjlllrws>MatBoy: Doesn't matter, actually
[00:46]<gzznvxzdzds>gioeleb: xmlns is a required part of a DOM Document
[00:46]<mzzcz9q>gioeleb: Not if it is in a non-default namespace, unless you remove all elements / nodes in that namespace.
[00:47]<myjrjo7>gioeleb, why?
[00:48]<mzzcz9q>Read about XML namespaces, then you will find out.
[00:49]<ryjnfn2>I have an XML DOM where a child has an xmlns="foo", I want that child but without the xmlns
[00:49]<tnmm>How would I go about making a login system that reverts to the same page for admin activities?
[00:49]<tnmm>Like, admimn.php has a user/pass box, and they put in the right user/password.
[00:49]<tnmm>And it goes back to admin.php with the activities.
[00:50]<mzzcz9q>gioeleb: Like I said, you can't remove xmlns unless you change the namespace of the node
[00:50]<mzzcz9q>If you removed the xmlns= then it completely changes the meaning of the document
[00:50]<ryjnfn2>MarkL: OK, thats is what I'm trying to do (removing or chaing is the same for me)
[00:51]<tnmm>Anyonne have any ideas?
[00:51]<ryjnfn2>MarkL: indeed I want to change the meaning of that piece of dom, changing the xmlns from 'foo' to 'bar'
[00:52]<mzzcz9q>gioeleb: In which case, I don't know any way of doing it without recursively setting the namespace on all the nodes below wherever it is you want to change
[00:52]<mzzcz9q>As namespace is defined for an individual element / attribute
[00:52]<ryjnfn2>If I try to ->setAttribute('xmlns', 'bar') I end up with this (I think illegal) XML <tag xmlns='foo' otherattrib='hello' xmlns='bar'>...</tag>
[00:53]<mzzcz9q>Right, you cannot use setAttribute because it's not an attribute
[00:53]<mzzcz9q>It indicates namespace
[00:53]<mzzcz9q>you'd have to change the namespace instead
[00:53]<ryjnfn2>what is the dom function to change the namespace?
[00:53]<gvyavjz>hi all
[00:53]<mzzcz9q>I've no idea, read the doc
[00:53]<gvyavjz>has anybody read ajax in action?
[00:54]<myjrjo7>gioeleb, set_namespace() ?
[00:54]<myjrjo7>gioeleb, http://www.php.net/manual/en/function.domnode-set-namespace.php
[00:55]<ryjnfn2>MarkR42: there is not a function that change the namespace of a domnode in php5
[00:56]<ryjnfn2>diogo86: that function is part of the old php4 domxml extension
[00:56]<myjrjo7>gioeleb, just noticed it
[00:58]<mzzcz9q>gioeleb: In which case there is no easy way of doing it. Changing the namespace of a node makes little sense anyway.
[00:59]<\djgsvnz\>anyone have experience with lft/rgt tree algorithm? i'm trying to verify if a path requested eg. /level1/level2/level3 exists, im not too sure how to go about this
[00:59]<\djgsvnz\>db is already tracking lft/rgt but i have no clue how to do this verification of a tree path
[01:00]<ryjnfn2>MarkR42: OK, suppose that you have two different NS and you want to switch from the first (old version) to the second (new version). Switch is simple because alle the old docs are valid new docs, except for the xmlns. What would you do?
[01:00]<\djgsvnz\>i dont know the lft/rgt values of level3 because its requested as a name
[01:02]<mzzcz9q>gioeleb: Of course you could rebuild the entire document from scratch
[01:02]<mzzcz9q>but that sounds a bit awkward
[01:03]<ryjnfn2>I can't even use ->importNode(, true), it remembers the NS (a good thing, btw)







