@# 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 29



Comments:

<0> basically that's what I want to do
<1> Order changing, mmmm
<0> thats the problem I saw
<2> i mean like <?PHP echo('$phpversion'); ?>
<1> NEWLINE: <?php echo phpversion(); ?>
<1> NEWLINE: php.net/manual. Don't ask another question until you read it.
<1> Toerkeium: Sounds JavaScript-ish to me, at least the order changing part.
<3> Hi all, advice needed, does anyone see the benefit in creating pages in xml and then using the xslt extension to converting them into xhtml? Rather than just creating xhtml pages in the first place.
<0> I could do that with js and then store the new playlist modified to the mysql? that's ok if you had to do it?
<0> I dont know if it's a better way
<0> but it sould to me very primitive
<4> Toerkeium: you might do that, yes.
<1> To "sort", you don't need JS. But it sure would be nice to use it.
<1> Something such as field sorting without JS gets ugly.
<0> xslt ? what od you think?
<1> zone17: Use XSLT, it's very nice.



<0> or the xmlhttp object?
<0> just readed about it
<5> hello, i am looking for a script to see Windows Networks from a web browser
<3> kuja, yes but why? I have used it, but I cant really see any benefit over just doing it "normally"
<1> Sure, you can use AJAX if you wanted, Toerkeium
<4> xmlhttp object? What is that?
<0> that, ajax
<1> Stormchaser: AJAX
<0> is it complex? or easy?
<6> it is the X of ajax
<1> Stormchaser: It's what it was called *before* people started calling it AJAX, really.
<7> wow, var_dump with two extra print statements is 10% slower then without those two print statements - I modified the PHP src to wrap var_dump with <pre> tags :)
<1> zone17: Because XSL is a language. It's flexible.
<4> kuja: Is it? I know about xmlHttprequest, and NEVER, EVER xmlhttp object...
<1> Stormchaser: pfft, that's what he meant you whore :P
<0> xmlhttprequest, that one, sorry it get confused
<4> kuja: Saddap, bitch
<8> Is there a way to get a ksort to behave like natcasesort (with the case-insensitivity)
<1> :O :(
<1> taoist: uksort() maybe
<8> kuja: thank you
<3> kuja, the only real benefit as I see it would be if the actual xml file is to be used for other things than just converting into xhmlt wouldn't you agree?
<6> isn't the british method of sorting?
<1> zone17: The XML is the data.
<6> that*
<1> zone17: The XSL is what you do with that data.
<3> kuja, I know what it is, you misunderstand
<3> never mind :-)
<1> XSLT is perfect for templating.
<0> woohoo
<0> see this: http://www.nuff-respec.com/external/javascriptgui.html
<0> :)
<5> help: im looking for a script that can browse Windows Networks from a web browser
<9> lol, php6? :) And i havent even had the time to try 5.0 yet :)
<1> eck0: Might just be a matter of listing \\server
<4> gimmulf: That's probably your problem...
<8> kuja: actually, I think what I want to do is natcasesort on the keys, not on the values -- would I still have to use uksort for that?
<9> Stormchaser: well apperently yes :)
<10> hey, I have a drop down menu for state selection of users when registering like so: <option value="LA">Louisiana ... now for the 'edit my info' page, I want to add the 'SELECTED' in the tag as well for the state they already had in the db ... I was thinking a ternary like <?php echo (userState == "LA") ? " SELECTED" : ""; ?>
<5> yes kuja
<10> but there has to be a more elegant way
<1> taoist: u/uksort is just a way to apply your own callback. It's as flexible as you want it to be.
<1> eck0: So try it?
<8> ahhh
<5> kuja: looking for a premade script.
<1> eck0: We don't give you premade scripts here.
<1> More clear: We don't do that here.
<5> I was asking for advice is someone "knew" of a script.
<4> kuja: Speak for yourself... eck0 $50k and it's yours.
<7> wow - the strangest thing I've seen - ob_start / ob_end_clean fails under extreme loads
<1> Stormchaser: lol
<5> :-/
<1> eck0: I run a better bargain, $25K
<4> oh, and cash in advance
<1> PayPal please.
<6> i'll go for 24K
<5> gfed.
<1> 23K!
<7> after about 30,000,000 ob_start / ob_end_clean - it seems to not clean the buffer anymore
<10> shoot, Id do it for 6 bux and a golden delicious apple
<6> mpetrov: 30MBs?



<7> 30 million times ob_start / ob_end_clean calls
<7> I'm benchmarking
<0> wel.. thanks guys for your comments
<0> and help
<7> so it's a double for loop 0..25 { ob_start; for(0..1,000,000); ob_end_clean; }
<7> the first one of those goes fine
<7> then there is another one just like it that calls a function
<7> then my shell just bursts with output
<6> most likely a memory issue, is my first guess
<7> maybe I found a bug in the PHP code base... it's brand new too
<7> 5.1.2
<4> mpetrov: http://bugs.php.net
<2> im sorry, please could someone tell me where ive gone wrong here http://pastebin.com/539328
<1> *sigh*
<1> It's too early for this hsit.
<1> *****
<7> well, I found the bug with the output
<6> mpetrov: run the script through valgrind and see if leaks of memory exists
<7> execution time limit
<7> ob_start was called
<7> then I had a million var_dumps
<7> and before ob_end_clean
<7> the script exited due to time limit
<7> outputting the whole buffer
<6> that makes sense
<2> sorry kuja
<9> NEWLINE: echo "blablabla '.function().' blablabla '.function2().'"; maybe better
<11> NEWLINE, check out what I've changed
<1> What you've changed will cause a parse error.
<11> http://pastebin.com/539331
<1> No, no it wont.
<7> yeah... well I benchmarked my custom php build - a var_dump with <pre></pre> wrapped around adds minimal overhead (10% with a simple string 'foo' as the variable) while a php function adds a 100% overhead
<1> What you've changed will be the same as what NEWLINE already has.
<1> Utter and complete silence of the functions.
<11> but without an error
<1> Because they're STRINGS
<11> how about you try it first eh
<12> mpetrov: right, functions calls are slow
<1> Provito: Sorry, I actually meant gimmulf
<11> kuja, ok
<9> kuja: ahh ok sorry , what was wrong?
<1> What *gimmulf* said is utter and complete silence with no change.
<1> gimmulf: Look closely?
<6> mpetrov: 100% of what.. i always hate statistics because they can make things look evil
<7> aidan`: now I will try to incorporate var_dump_pre as a new built in function, instead of hacking the old var_dump :)
<12> mpetrov: ... why?
<7> well here are the results:
<9> kuja: hehe i thought it was same with the functions as with ordinary variables :)
<1> gimmulf: Look at it, you may think you're concatenating, but it's all one big strings.
<1> string*
<12> mpetrov: that's just bloody ridiculous, var_dump is a debugging tool ... you won't be using it in anything other than debugging
<13> any ideas on how to stop trackback spam in my script?
<7> var_dump with <pre> wrap: 25 mil times 30.1 sec, var_dump with no pre 26.5 sec, var_dump wrapped in two <pre> echoes 53.1 sec
<1> gimmulf: echo "blablabla '.function().' blablabla '.function2().'"; -- You can't see what's wrong with this?
<11> gimmulf, you need to do this echo "blablabla ".function().";
<7> why - well because I felt like exploring the source
<11> but thats horrid anyway
<1> Provito: _Now_ you've got a parse error.
<7> it's not a matter of why, but of "can I do it"
<12> mpetrov: then explode the source, but it's such a useless thing to do, I can't believe you benchmarked it for that purpose
<6> mpetrov: if your that bored.. benchmark echo vs print
<12> explore*
<9> Provito: or echo 'blabla '.function().' blabla '.function().' blabla'; ?
<2> echo "php version '.phpversion().'"; doesnt work
<12> NEWLINE: why would it?
<9> sorry for that one NEWLINE :)
<1> gimmulf: That will work. But it's different from what you pasted earlier
<9> my fault hehe
<9> yep kuja , sorry :)
<2> :)
<11> kuja, how have I got a parse error? http://pastebin.com/539337
<9> NEWLINE: echo 'text '.function().' text ';
<1> <11> gimmulf, you need to do this echo "blablabla ".function().";
<7> I benchmarked it because it was a fun thing to do - but yes, it is stupid to optimize var_dump for performance


Name:

Comments:

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






Return to #php
or
Go to some related logs:

debian stop xserver
#php
dapper sound Intel ICH6
#lisp
#perl
xboard gnuchess 100% cpu
postfix fatal: connect #11 to subsystem private/scache: Connection refused
SELECT COUNT (*) perl
intel ich6 ubuntu
baselayout reiser4



Home  |  disclaimer  |  contact  |  submit quotes