| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Comments:
<0> not if he uses a flux capacitor Poll.... <1> LLX: not if you want to get key = value pattern dinamically. <1> 'Poll'? <2> LLX: But where would he find 1.21 Jiggawatts? <1> on the INTERNET! <3> someone call me? <2> 1-900-JIGG-4YOU <3> lol <4> i think i have to wswitch my fluxcruistals to <3> get mah jigg on oh yeah <0> well well i really just need to get the 1 from checked, into oen varible, "tableclotsh" from "<!--InstenceName-TABLECLOTHS-InstenceName-->" into another, etc... <3> ohhhhh sprained something... *hobbles off to the doctors* <5> I'm writing an app for a friend who is running PHP/Apache on Windows. When I specify a file path (IE: as a parameter to a function), do I need to use forward-slash? <2> jiggster: We were just discussing time travel, go back to your business <6> Is there something like a object dumper in php? <2> btraut: Technically you can use either, but I recommend using forward-slash
<3> time travel to the future, quite impossible <6> Something that can print the content of an object? <3> the past, less impossible <1> sredna: print_r() <6> Stormchaser: ? <2> e.g.: fopen('/foo/bar','r') == fopen('\\foo\\bar','r') <7> save a backslash tree. support unix paths. <6> Object->print_r()? <2> The reason why *should* be obvious (the backslashes need escaping the forwardslashes don't) <0> well lets see what hapens <2> jiggster: I'm traveling to the future right now <1> sredna: Um... no... print_r($object) <2> there! I just did it again <2> and again! <2> I'M UNSTOPPABLE! <1> Pollita: You can't do that... <3> lol <3> nice <6> Stormchaser: Does that print to STDOUT? <1> sredna: yes <2> Stormchaser: ...on television? <1> Pollita: no... you forgot your car keys :) <6> Stormchaser: Ty <4> if you see Dr Who .. pls ask him if there is a special func to search in a 2 dim array ( in this time frame) <8> www.worldenergies.net (here is the code -> http://pastebin.com/548974 ) the poll doesn't work. when you submit a suggestion it will not send the query to the db. and if you simply try and vote - you get nothing <9> speaking of which, does anyone know a php script for a time machine? i need to go back to about 20 minutes ago so i can leave work before the rush hour traffic <10> How can I make this possible $op = +; I need to store it. <0> i think im almostgot it <1> $op = '+'; <10> sweet <3> *sigh* <3> this channel hurts sometimes <0> bugger its preg matchign alright but its not updatingon a loop <11> Hey. Has anyone tried PHP with apache 2.2 yet? <12> IrcMonkey - yes <3> IrcMonkeyUser309: i havent but i've been meaning to <1> I have it working with a2.3 -- I don't see why 2.2 would be different... <8> I feel ignored, I have been struggling with thise code for almost a day now <0> storm: $isChecked = preg_match('<!--Checked-(.*?)-Checked-->', $PagesArr[$k]); is returning one no materwhat my data says <0> any ideas? <13> Hi, can someone help me with some PHP code? http://pastebin.com/548990 <- I need to force this table to only allow 3 rows; is there a way that I can implement a counter so that every 3 columns introduces a <TR> or something? I'm completely stuck. <13> 3 columns** <3> $i=0; $i++ if($i==3) { $i = 0; } <3> oh yeah <0> is it populated by a for or while loop? <1> LLX: Please read php.net/preg_match <1> !+func preg_match <14> int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset ]]]): Perform a Perl-style regular expression match <15> Hi All. I'm trying to use some sort of static cl*** variables in PHP 4 and am trying to keep an array as a static variable that holds a bunch of parameters that should be available to all instances of a cl*** after the first one is created. Is there a way to do this? <16> where can i read about the differences between php5 and php6? <17> PHP 6 is released? <2> hah <2> no <16> the topic says php 6.0.0-dev <16> i just want to know the differences... <18> read: unstable <16> like what their improving <2> wundaboy: PHP6 is primarily about improving support for unicode <16> i.e. how they change objects... <2> The OOP model is going to be largely untouched
<16> :) <2> A few directives are being dropped though <17> Hmmm. I think you sohuld wait till the release of 6,PHP 6 will most likely change as it progresses into a stable release. <2> magic_quotes_* for example <2> And ze1_compatability_mode <0> i jsut don think ill ever get the hag of preg_anthing <19> how can i access network neighbourhood through the cmd prompt on win32? <2> LLX: At some point you'll have an "AH HAH!" moment and it'll all crystalize <2> Colloid: NET HELP <16> what is unicode? <15> anyone have any suggestions for me? I'm kind of desperate =) <20> How do I reignite the fire in my marriage? <20> (As long as Pollita's answering everything) <10> well .. $op = '-'; wasn't quite what I was looking for. I wan't it to evaluate as usual. echo (2 $op 1); should echo 1. Not "2 - 1" <2> wundaboy: It's a supercl*** of character sets, helpful for i18n <16> TML: i just got my gf some HOT underwear, you might try the same thing ;) <2> TML: Try doing it in a new location, maybe let her use the penis for once. <20> <:O <2> Yes, hold your mouth just like that <20> heh <2> mind the teeth <20> Flying_Cow: $op = 'bcadd'; $op(1, 2); <10> ok nice. <2> Flying_Cow: eval("echo (2 $op 1);"); <2> However: <20> Pollita: I'll have to ask the Mrs., but it seems unlikely she'd fancy that much. <2> !+eval <14> If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP <18> heh <0> well thanks anyway il try to tinker abotu and get the hango f preg <15> so what's the rule for repeating your question if no one's answered it yet? =) <21> brendyn: Ive been reading it over, but i'm not sure what you are asking. <15> okay <20> brendyn: Go ahead and repeat <22> is there any software or even a paper version of something that can help me manage a software project which is too large just to code it in one go? <15> can i PM to try to explain it better? it's a fricken beast and im having problem making it clear. <21> brendyn: are asking for "global varname;" ? <15> let me try <15> so I have a cl*** that loads up its attributes dynamically on creation. this is incredibly inefficient if 1000 objects are created because it = 1000 db queries <20> monkeypoo: You'll have to be more specific, because "a ream of paper and a pencil" would answer your question. <15> im trying to find a way to "cache" the field names that i get from the db query that initializes the cl*** attributes after the first object is created <15> so that the later objects can reference it instead of doing another db query <0> peace <23> brendyn: hold the attribute definitions in an array keyed with the objects name <22> i'm just having trouble with this program i'm writing. it's too large. <23> I do that in one of my cl***es which does the same thing <21> brendyn: Declare a global array and each key will be your cached field name? <15> okay <15> so something like $_GLOBALS['Cl***Name']['attributes'] <24> brendyn: have you tried a "define" statement ? <15> and that holds all the attributes? <22> defines don't hold arrays <15> yeah <24> oh, i forgot that it was an array, sorry. <20> You'd have to do one constant per attr <23> you could do that. Personally, I keep the array in my DB abstraction object <15> hmm <15> can you explain that a bit more? <20> define("FOO", $bar['foo']); define("BAR", $bar['bar']); <15> in your abstraction object? <22> try this: make one cl*** that has all the data you want shared. then globally refer to ti from all other cl***es <23> brendyn: http://www.jonathanbuchanan.plus.com/repos/activerecord/db/mysql.php <23> the getFieldsForTable($table) function <15> ah <15> yeah he uses a global $FIELD_MAPPING <15> ok <23> $_tableFieldCache is used to cache definitions by table name <15> okay <15> cool. <15> one thing i need to make sure, though, is that that global gets cleared the first time the first object is created <15> in case changes to the db table's fields have been made <23> *during* a request? O_O <15> nah <15> this is probably a beginner's question, but does the global array clear on each page load?
Return to
#php or Go to some related
logs:
ext2online error: invalid argument libdecss fedora linuxprinters #centos #javascript #perl #python #debian dpkg-divert mismatch on divert-to fglrx-driver arptype 0 not supported by libpcap
|
|