@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> !tell surfdue about g7
<0> that
<1> I once replaced most of the user backend without even touching any of phpgw's files. i can upgrade it without patching
<2> im not jobposting.
<2> it was a joke trying to see if anyone would respond :P
<0> it counts
<0> i wish i had my wisdom teeth back :/ i could actually eath
<0> eat*
<3> !g7
<4> cya
<2> i love wisdom
<2> :P
<5> Jemt: thanks, but it just sais you need cli, and if i install that it will remove the mysqlsupport because some strange things
<1> itrebal: it won't take long, until then enjoy your m***ed potatoes.
<0> ||cw: heh, about an hour ago i learned the horrors of eating just pudding and jello for two days



<3> You learned that an hour ago?
<1> itrebal: i do NOT want to know...
<6> i wanna trunk an array at 50 items ?
<0> ||cw: just for the record: DONT do it
<6> i have to use array slice ?
<1> itrebal: found some interesting ways to flavor mashed potatoes when I had mine out
<2> i know the horrors of eating a hole bag of peporoni
<0> ||cw: explain, i'm looking for ideas :)
<2> lets just say it has something to do with a not so pleasant sleep ;)
<1> itrebal: add salad dressing is one way
<2> hi Skyrocket and jared
<0> ||cw: that sounds good, actually
<1> itrebal: then the obvious spices, like curry, butter and garlic, etc
<2> itrebal, you could get your mom unit to chew your food first.
<7> Hey surf :)
<1> itrebal: chop up ham realy small, like a hash so it's more mush, but at least flavors and you get some proper protien
<2> ||cw, why not just shred it, with a cheese grader! :P
<0> ||cw: that sounds like a good method
<0> blender, heh
<2> NO NOT THE BLENDER!
<1> lol
<1> heh, shreded ham
<8> hey, does php do anything with mysql that might cause mysql to use 50+% cpu just from insert on duplicat key statements (windows)
<9> surfdue: Uh, itrebal isn't a ferrengi.
<2> yes windows. :P
<2> Ahroun, well that makes me feel better?
<2> there back!
<8> surfdue, is that seriously the problem or are you just insulting windows? (btw. I hate it too but I don't have a test linux system up yet)
<1> Jared555: it's generaly more effcient to do a select to try and detect dup keys first
<0> lol
<9> er, grand negus
<2> no i think it is cause mysql said it was using that much on my windows machine, but it really wasnt
<8> ||cw, k.
<2> mysql said its using like 40% and yet i have other programs using 80% or something? Dosnt add up.
<6> how can i remove the end of an array >
<1> Jared555: code becomes a bit cleaner too. though with a good index, the insert should fail pretty quick
<6> cut every things after 10 items
<1> HeliosTech: array_splice?
<2> ||cw, your really smart
<1> surfdue: been doing this a while
<8> is there a good way to reduce number of inserts/selects if you are reading a bunch of text, splitting it by word, checking to see if the word is in the database (if so, grabbing the word's key, if not, inserting it and reading the key), and then checking if the word is already linked to the file (if so inserting a new link, if not doing nothing)
<7> Anyone know of a good guide (online) on how to get the most out of working with projects in Zend Studio? I'm kinda puzzled on the whole concept of projects vs normal filesystem
<6> ||cw yeah that what i think
<2> ||cw, can I pm you?
<2> ||cw, do you mind if I pm you?
<1> in general, yes I mind
<2> ;)
<2> I dont wanna ask in here they will think its spam.
<3> Bugger. Is it possible to create an instance of a cl*** where the cl*** name is contained in a variable ?
<0> $obj = new $cl***name(); ?like that?
<3> Like this : $instance = eval("$cl***name()";);
<3> itrebal: Yes - except that your example won't work :)
<0> Jemt: i know perfectly well, it just gets the point across
<3> itrebal: True :)
<1> Jemt: no, new $cl***() shoudl work
<0> oh really? woah.
<10> Jemt: eval("return $cl***name();"); if you're going to do it that way
<3> tempest1: Yes, ofcause. I should have thought of that :)



<11> so im trying to troubleshoot a script that takes POST data, but from a javascript object instead of a form i can submit. does anybody know of a trick to send POST data though if you dont have a form?
<1> what doens't work is $cl***::foo()
<2> just make a function to do it. :P
<3> ||cw: Hmm, I actually tried. Couldn't make it wourk
<3> work
<2> Seadog, hello
<3> Hm, I'll give it one more try
<3> Thanks all :)
<12> make an init() function that instantiates the cl*** and returns __CL***__
<13> hi
<0> woah? PHP not installed on my local computer?
<3> Wow, It DID work this time. Must have misspelled something
<14> I have several php files with the same functions but drastically different logic. Now I have a list of these files and I want to traverse this list and call the same function name from each file until one returns true. However php yells at me saying the function is already defined. How can I go about including different sources files but calling the same function?
<0> i need to get a devel box up
<2> Wescotte, could you just include one of the function files?
<2> Wescotte, would it better to just name each function diffrently, what im understanding is you have the same function but diffrent ones do something diffrent?
<0> i think you'd have to change the function names to somethign like function_1(){} function_2(){} etc
<14> Basically I'm trying to detect file formats so I include a file run is_file_format if it's false I include the next and run it's is_file_format until it's true
<2> oh!
<9> reinventing the wheel.
<15> Wescotte: why not just use the mime extension? I think it's in pecl.
<2> are you collecting names from an array?
<1> Wescotte: that's a perfect use case for cl***es.
<0> File Info extension
<14> yeah I wanted to avoid cl***es if I could
<16> Hey! I am using 'imagecreatefromjpeg' and adding text to it. It really seems to be distorting the image though, very pixelated whilst the .jpg its using isn't at all - any ideas why it does that?
<1> don't think you can
<14> CryWolf: Because it's not being displayed and it has no mine extension
<1> Wescotte: you don't have to make instances though, just use then staic
<2> Teach, im not firmiliar with that function, is there an option for image quality?
<14> staic?
<16> I can't see any quality for http://uk2.php.net/imagecreatefromjpeg :(
<14> how would I do it by cl***? create a constructor that p***es the php filename and just include it there?
<15> Teach: probably has something to do with the fact that jpeg is a lossy compression. Can you use png instead?
<1> Wescotte: like include($file.'.inc.php'); call_user_func(array($file, 'function'));
<16> ah, yes we could!
<16> thanks, I'll try that
<17> im struggling with getting php_curl enabled on IIS 6 (PHP5). when i uncomment the extension-php_curl.dll , my server stops responding to any query that uses php in the page. does anyoen have a url to an install guide for curl+iis+php5? thanks for any help ! :)
<1> Wescotte: name the cl*** the same as the base name of the file
<18> anyone here familiar with the ReflectionCl***?
<19> how would I parse a string, "somegirl + someboy", to read somegirl and someboy as seperate values delimited by the plus sign?
<20> gamengineer: split on " + "?
<18> I'm tryign to extend it to include my "virtual" get/set methods when I do reflection
<19> pyxl, yah
<18> gamengineer: explode('+',$string);
<19> normally, I guess I would read every character in until I found the "+", and then
<19> sand: oh... explode eh? will read on it, thanks
<14> ||cw: Couldn't I just create a container cl***? where the constructor p***es the php filename? then have a is_file_format() function which includes "$filename" and calls the is_file() function stored in $filename?
<18> that turns it into an array
<1> sero|work: curl requires at least 2 additional dll's be in your path, should be covered in the readmin/install files
<20> yeah, explode is better, doens't use regexes.
<19> sand/pyx: great, that works for me! thanks
<18> np
<20> .
<1> Wescotte: i'm not sure how scope would deal with that, but if it work then just using a function to do the include/function call would also work
<14> ||cw: I thought that would work as well but it doesn't
<14> ||cw: I think it'd work with cl***es because it's multiple instances
<1> then i don't see how a cl*** would be so different
<17> ||cw by path im ***uming you mean the include_path that is specified in php.ini ?
<14> cl*** is dynamic memory right?
<1> sero|work: no, system part. you are loading dll's remember
<0> lol, what a dumb***, someone one the lottery and didn't put it in their taxes
<1> sero|work: you can also download a program called "dependancy walker" and open the php_curl.dll with it and it will tell you whats missing
<14> I'll create a quick test app to see if my theory works
<1> Wescotte: it's all about scope.
<21> i'm trying to write a wordpress plugin that will loop over a directory and pull a random photo url that i can then paste into an img tag. i'm no php expert; i know more about perl. here's the pastebin of the code: http://pastebin.com/659792 it returns an error on line 5, where the 'new array' is. any ideas?
<22> brandon_: email to their developers?
<1> brandon_: drop the "new"
<0> brandon_: Array isn't a cl***, so just $dirContents = array();
<1> brandon_: array() doens't return an object
<21> ok, i'll try it. just a sec
<23> hey all, is there something wrong with this? http://rafb.net/paste/results/GBoTdZ65.html
<0> yes
<0> <?php echo $title; ?>


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#web
poweredge 830 debian
#css
#css
gentoo azureus azureus-bin
yum Samba 3.0.21b FC4
#gentoo
error 27: disk read error
updated stock unfo
EFW Recipient address rejected



Home  |  disclaimer  |  contact  |  submit quotes