| |
| |
| |
|
Page: 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
Comments:
<0> does anyone actually buy viagra over the net btw? <1> i've got 1000 different IPs <2> IP != individual computer. <0> ah right k <0> fair enough <1> |Clare|: no point in buying it :] <0> yeah, randomly generate a number string or something <0> haha, you'd think so wouldnt you :/ <1> did anyone read that pastebin post ^^ ?:)) <1> |Clare|: more better: "Type in a Chinese name:" <1> :))) <3> i have a problem with my PHP script... it works fine on apache but has problems with IIS, i get an HTTP 405 error... how can i find out what is causing this? <1> Hal9000: googled it? <0> im guessing its cos you're using IIS :P <1> i found an answer straight away by typing "http 405" <1> Hal9000: http://www.somacon.com/p126.php
<3> Drakas: thanks, i'm going to read this now :) <0> on an unrealted note, msn 8.0b is a pile of wank <4> |Clare|, that is very true <1> why is it?;) <1> i pretty much like it <0> cos it crashes <1> o_O <0> when its not even doing anything <1> maybe you don't know how to use it? <1> |Clare|: I second that <5> But if it's locally ? <0> why cant they all have the same rendering engine/rules? would it really hurt that much <4> |Clare|, have they ever been good ? :P <6> ace_me: oh, local, yeah, just ob_start before you require the document <6> ace_me: then ob_get_contents(); ob_end_clean(); <5> and include ? <5> require <6> ace_me: require/include same diff afaik <6> ace_me: one requires, one includes <6> ace_me: have you tried this yet? <5> and should accept parameters ? <5> It doesn't work up to now <5> that's why I am asking <6> ace_me: what do you mean parameters? just define a variable <5> to be sure to insist <1> ive got a very good idea on spam filter :D <1> use the critical thinking method <6> ace_me: an include file doesn't change scope <1> it will automatically put in how the text is laid out <5> require ('../svgrecreate.php?id='.$id.'&pag='.$pag); <1> bye noW :D <6> ace_me: i'm pretty sure that won't work. the query strings are handled by apache <6> ace_me: or whatevre web server, a require request doesn't go through apache, but you don't need to use the query string to p*** parameters to an include, just define the variable $pag, and it will be in scope in the included file <5> ok <5> now I get it <7> hi....what is the right way to put an array value into a mysql query? "select * from table where id = '$idArray['peter']'" <--- wont work because ' overlaps <4> "select * from table where id = ". $idarrat['peter']; <7> thanks <8> "select" . $idArray['peter'] <4> what is the "best practise" way to make and use database cl***es ? as static cl***es or dynamic ones ? <6> z1n^work: is static the opposite of dynamic in a programming context? <9> z1n^work, typically you would have a DOO layer, ala propel or roll your own <4> static = where you do not have and attributes <4> basicly a static cl*** (its the right oop term yes) is a collection of methods and nothing more <4> i made a db static cl*** which doesnt every have a $db = new db(); to be instanciated <4> as a static cl*** does not have a constructor <4> this here would be how i use my db cl***: foreach(DB::fetch("SELECT * FROM table") as $result) { echo $result["tablefieldname"]; } <4> is this in anyway wrong ? <6> but a non-static cl*** isn't called a dynamic cl*** is it? <4> im not sure if it is but thats not the point :P <6> dunno, i was just curious <4> hehe ok mate <4> saves me a few lines of code anyway <6> z1n^work: i'd say the only thing that looks wrong with that method is that it transfers the entire query result into memory <4> dools, doenst that depend on what the method actually does ? <6> z1n^work: from your use of it there it looks like it returns a query as an ***ociatie array with one row per array element <0> oh **** <0> is there a case insensitive way of replacing strings in php 4.x? <6> |Clare|: probably :-) <0> thanks
<4> it does a mysql_fetch_array thing so yes :) <6> z1n^work: this can be bad on big result set's <4> but that wouldnt be any differnt from normal quest the old way ? <4> with while($row = mysql_fetch_array()) <4> query* <4> i can paste the contents of the fetch method if you like <4> in the past site <10> anyone reccommend any free php5 accelerators? <1> how can you find out if a word is similar to another word? <1> there was a function, i don't remember ;/ <6> z1n^work: you did foreach(DB::fetch('query') as $result), that means that DB::fetch() must return an array containing the entire result set <6> Drakas: metaphone <4> yes <4> bascily <4> but that is the same as $row = mysql_fetch_array no ? <6> z1n^work: well if you do mysql_fetch_array($query) in a loop then only one row from the result set at a time is in memory <0> You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '11:39:53' at line 1... <0> can mysql error messages be any less useful? <4> i do that in the method <4> ill paste it 2sec <1> thanks dools :) <6> Drakas: np <4> dools, http://rafb.net/paste/results/q8iCxh92.html <1> dodo: what about word similarity, not in a way it "sounds" ? <1> there was another i am sure <6> Drakas: metaphone :-) <6> Drakas: there's also soundex but it's not as good i don't think <1> okey <1> :} <0> anyone kno why $postdate=date('y-m-d H:i:s'); throws up an error when ya try to put $postdate into a DATETIME column? <4> you have to do it in quotes i think (not at all sure, just remember something about that) <4> using int as datetype is much easier :P <8> "FROM_unixtimestamp(".strtotime('now').")" check: php.net/strtotime and #MySQL <8> if its mysql <11> this line: if (!empty(array_values($clainfo))) is giving me an error of: [Wed Apr 12 11:47:02 2006] [error] PHP Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in <1> metaphone seems to doa good job !:D <6> Drakas: it's pretty good <1> awsome <1> "V1a9RA" straight away differs from "\/1a9RA" ;] <1> my system is gonna be a memory buster <1> is there any way to merge two strings using it's "parent" string <1> ? <6> Drakas: levenshtein might be more appropriate <1> like, 1: "H3LLO", 2: "HELL0", parent: "h3ll0" and to get "Hello" <12> hi there <1> seems interesting, dodo <1> * dools <6> haha <13> Greets. I'm working on a UML cl*** diagram. I have a cl*** containing only static functions. This cl*** fetches an instance of an object in each of its functions using a Singleton cl***. I have added a 'dependency' connection between these two cl***es. But what ***ociation type should I use between the cl*** containing static functions and the cl*** of which I fetched an instance using the Singleton cl***? A dependency, a regular ***ociation, a composite ag <13> gregation or a shared aggregation? I think I can rule out the last two options - but which of the two first? <13> first two* <1> soundex seems more useful <14> haargh! <12> i'm looking for a working solution for editing page content with so called bb-codes - anything decent to consider? also adding own tags would be nice.. <0> adding own tags is easy enough <0> just write a big string function which replaces [b] with <b> and so on, the same can be done with pretty much anything you want....and replace < with -; and > with > to rip out html formatting <0> is that what you meant? <15> http://www.php.net/str_replace <16> Is the best way of removing something from an ***ociative array =NULL;? <14> unset($array['foo'] <14> ) <17> I can not seem to figure out why header('location: index.php'); isn't working. <16> ahh, I knew there would be something <16> thanks <17> Ah, I know why. <16> ....why is that not listed under array functions, by the way? <16> Rather odd, if you ask me. <14> scarfboy: send abuse to nforbes@php.net <16> I know it's more general <16> ...er? <16> how's that? <10> anyone recommmend any php5 accelerators? <14> nforbes is a prick who wont listen to anybody about the manual maintenance, tell him I sent you <16> I use eaccelerator beause it didn't complain about the mpm I was using
Return to
#php or Go to some related
logs:
ubuntu bbo sed delete line before ubuntu dmraid remove (failure OR fehler) gentoo vesa #fluxbox qgrep Read-only file system #perl +removeLock +perl #lisp #suse
|
|