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-06
[15:40]<2zjzggzzzm>TML: I don't see what you mean
[15:40]<tml>Heliostech: It's just a variable function, you don't need a pointer.
[15:40]<eddgdw>When i generate XLS document using Spreadsheet_Excel_Writer [$worksheet->setInputEncoding('utf-8');] i don't see properly encoded chars in openOffice.. This can be fixed by setting: [$workbook->setVersion(8);] but manual said it's deprecated.. and it causes error in XLS: some columns have value [$workbook->setVersion(8);].. Did you succeed generating utf-8 XLS using that PEAR class?
[15:40]<2zjzggzzzm>TML: I just see the dates in the function
[15:40]<dzjdgg>!cron
[15:40]<xnfyjsvnax>TML, perfect ;-D
[15:40]<dzjdgg>does anyone know how to setup a cron ?
[15:40]<tml>brokencard: It's going to write that exact string to the end of the document in one big blob, just like that.
[15:40]<dzjdgg>i mean i know how to do it but i dont know what command to use to run a php file
[15:41]<gjvsdzzv_>cheater i am
[15:41]<gjvsdzzv_>i cant reply need to register first :)
[15:41]<xnfyjsvnax>TML, do it mean in parsing that variable are replaced before function execution ?
[15:41]<tml>dromen: php -f file.php
[15:41]<tml>Heliostech: Yes.
[15:41]<2zjzggzzzm>TML: so, how can I get it to simply replace 'clickme'
[15:41]<dzjdgg>TML, shall try it :D
[15:41]<xnfyjsvnax>does $var = 'toto'; $var() return (function otot not found ?)
[15:41]<tml>Heliostech: And if you find a case where things are processed in the wrong order: ${foo['bar']->complexthing}();
[15:41]<tml>Heliostech: TIAS
[15:42]<xnfyjsvnax>TIAS ?
[15:42]<tml>!+TIAS
[15:42]<lxl-2jv>[TIAS] Try It And See. If you want to know if or how something works, try it first.
[15:42]<xnfyjsvnax>hehe
[15:42]<xnfyjsvnax>ok
[15:42]<tml>brokencard: You don't really want it to replace "clickme" with all of that in one big blob of text, do you?
[15:43]<2zjzggzzzm>TML: well, I want it in a column, but when I port it to smarty
[15:43]<2zjzggzzzm>TML: it should work
[15:43]<2zjzggzzzm>TML: I just don't want it seemingly erasing all of the other stuff on the screen
[15:43]<xnfyjsvnax>last question does 'a' is a char type or a string in php ?
[15:44]<tml>brokencard: Start with a simpler example. Remove PHP from the equation, and then go talk to the folks in #web about how to get javascript to do the replacement correctly, then work your way back to the PHP.
[15:45]<tml>Heliostech: PHP doesn't have a "char" type
[15:45]<xnfyjsvnax>ok
[15:45]<fdvvfnznlxdz>Heliostech: Since PHP has weak variable typing, it shouldn't matter :P
[15:45]<xnfyjsvnax>yep but i'm curious
[15:46]<fdvvfnznlxdz>Heliostech: the only thing to worry about with variables are booleans
[15:46]<tml>LittleZephyr: It matters in the sense that you can't have values of a type that doesn't exist.
[15:46]<2zyrgmrg>Why does this following snippet of code keep giving me 'Unsupported operand type' error? $size = $size / 1024;
[15:47]<fdvvfnznlxdz>brianMan: What's in $size?
[15:48]<2zyrgmrg>LittleZephyr: 42952
[15:48]<tml>brianMan: Check again. Try using var_dump()
[15:51]<fz2znaxn>Hy
[15:52]<fz2znaxn>anyone knows how to access an attribute using DOMXPAth query?
[15:52]<fz2znaxn>join #amergence
[15:53]<tml>labreche: Sure.
[15:53]<fz2znaxn>TML: how?
[15:54]<tml>labreche: Using the @ prefix
[15:55]<tml>labreche: <foo bar="baz"> -> //@bar would select "baz"
[15:55]<veue_`q9>mysql_connect returns a dblink... can you not store these in your php classes? I cannot seem to connect to 2 separate mysql db's
[15:55]<fz2znaxn>TML: i'd found too, that's: path/MyNode[@itsAttr]
[15:55]<fz2znaxn>TML: tnx
[15:55]<veue_`q9>i'm doing var $dbLink; $dbLink = mysql_connect....
[15:56]<veue_`q9>$this->dbLink = mysql_connect that is
[15:56]<zygmjpp>Hi all.
[15:57]<zygmjpp>How can I tell how much memory does the PHP interpreter consume?
[15:57]<fz2znaxn>Hy
[15:57]<cyzzzg>should work truz_`24
[15:57]<zygmjpp>Hi labreche
[15:57]<||aw>truz_`24: that should work fine, but you need to make sure to pass the dblink var to ALL the mysql functions you call
[15:57]<veue_`q9>I am, if i do each individual connection by itself it works...
[15:57]<veue_`q9>its just when i do them both
[15:57]<||aw>rindolf: there's a debug function for that
[15:58]<zygmjpp>||cw: OK.
[15:58]<zygmjpp>||cw: what is it called?
[15:58]<cyzzzg>truz_`24: you're putting the other connection in a different variable right?
[15:58]<veue_`q9>Ciaran, yes, its in a diff class
[15:58]<||aw>truz_`24: 2 seperate class instances? and they are different logins?
[15:58]<veue_`q9>||cw, yes
[15:58]<||aw>rindolf: i don't recall, there's a debug section on the manual
[15:59]<eee>Hi! Is there any way to list all $_SESSION variables, if i don' t know its names?
[15:59]<veue_`q9>I'm storing the classes that contain these dblinks in $_SESSION, is that not allowed?
[15:59]<zygmjpp>||cw: OK.
[15:59]<cyzzzg>truz_`24: don't do that
[15:59]<2zyrgmrg>Is there a function to get the colordepth of an imagefile?
[15:59]<||aw>truz_`24: that should work too, but the links won't persist the session, you'll need to have you class reconnect when needed
[15:59]<zygmjpp>||cw: thanks.
[16:01]<sazussnf>zzz - array_keys($_SESSION)
[16:01]<eee>sjrussel: thx.
[16:02]<tml>brianMan: Depends. What sort of image?
[16:02]<2zyrgmrg>Differs
[16:02]<2zyrgmrg>Mostly jpg
[16:03]<tml>brianMan: JPG, yes.
[16:03]<zygmjpp>||cw: where is this section? I cannot find it. I looked at http://il2.php.net/manual/en/
[16:03]<tml>brianMan: getimagesize() returns that for JPGs.
[16:04]<||aw>rindolf: tried a search? php.net/memory
[16:05]<zygmjpp>||cw: I searched for "debug".
[16:05]<2zyrgmrg>TML: Not according to the documentation :(
[16:06]<||aw>brian: yes it does, see the 2nd NOTE
[16:06]<2zyrgmrg>k
[16:07]<||aw>it is kind of vauge though
[16:07]<tml>brianMan: Keep reading. =)
[16:08]<zygmjpp>||cw: thanks.
[16:08]<rnmacn>and vague!
[16:08]<||aw>TML: the paragraph that starts "Returns an array with 4 elements." has no mention of a "bits"
[16:08]<suv9w9>do I destroy Class objects with unset() like any other var?
[16:08]<suv9w9> // instantiates and returns a component instance
[16:08]<suv9w9> protected function createCom($comName, $attr)
[16:08]<suv9w9> {
[16:08]<suv9w9> $className = ucfirst($comName).'Component';
[16:08]<suv9w9> $inst = new $className($this, $attr, $tagExtra);
[16:08]<suv9w9> return $inst;







