| |
| |
| |
|
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> stedios: Just seems less ambigous that way to me. <1> function foo() { if ( $bar ) { return true; } return false; } <0> Stormchaser klined? <2> Jymmmm: Doubt that, but gone noetheless <3> Clazziquai, ah ok <1> Stormchaser: nick `wtf' <3> need the 'else' tho correct? <0> lig what about ternary? <1> Not in that situation, stedios <3> ok <4> Stormchaser: Gah, now I can't spell it right <4> EFF YOU <1> return will return from the function, thus p***ing control back to the caller <5> return ($bar)?TRUE:FALSE; <2> kuja: Here, but ile for 6 minutes
<2> *idle <4> Nevermind, I got it <0> lig no need, it's implied <4> :\ <1> Stormchaser: Huh? <3> Clazziquai: ah ok, makes sense :) <0> lig you can just say return($bar); <2> [02:05:19] wtf's idle time: 0d 0h 6m 30s <1> return (bool)$bar; is sufficient, in that simple case <1> Stormchaser: ah <2> Ah active again :/ <0> lig Nah, most ppl dont get that things are implied sometimes. <0> lig Like when I say 'lick' it's implied what that means <5> lol <0> lig see, you dirty mind in in the gutter with the rest of us <5> of course - 6 years in the navy did that too me long before here <0> lig Gives new meaning to the term polywog <5> hehe - I'm a shellback <0> lig: you had to be a polywong to become a shellback <0> lig: So, how did you like having your belly kissed by all the polywogs? <5> true - and had a good time trying to steal the flag <5> na - was never the baby... <6> Is there a function to convert a time() number into a normal datestamp? <0> lig awwwwwwwwwwww, too bad <0> lig you seem the type that would <5> brohism: date maybe <0> lig (you know all these ppl are going WTF?!) <5> LOL - probably <0> lig do you still have your certificate? <5> no - lost the cert - but I still have my card <5> and yes the mermaids are topless <0> lig well that ****s. They were beautiful <2> lol <0> lig what they changed them? <5> yeah - the new ones have bikini tops <0> lig oh that totally ****s.. after what, 100+ years ?! <5> I lost it somewhere in one of my moves - and yeah - it was beautiful <5> longer then that - it dates back to the 1700's I think <0> lig: I have never seen such a beautiful 'document' ever, and I worked as a printer too and same many things. <0> s/same/seen/ <0> lig wait.. shellback.... how many times did you cross over? <5> twice on board ship <2> and once in the beard shop? :) <7> Hah. <5> hehe <5> I wasn't chosen to be the wog king - so no beard for me <8> I was looking into a way to grab data from a website and was told about curl, so I've been playing around with that, but I can only get it to grab the source of a page, which isn't quite what I'm looking for... I'd like to get the actual text that is displayed without all the html code... is there a way to do this? <5> ijwyn: maybe strip tags <5> LOL <9> ijwyn: Copy and paste the text. <9> :P <8> imphasing: well that's what I'm already doing, but I have a lot of sites I do that with every week, so I'm just trying to find a way to automate the process and make my life easier <10> ijwyn: strip all the html ... <10> ijwyn: strip_tags <10> the text in most cases will hardly be readable without markup <8> yeah, I'm looking into that right now... might be the solution <8> well, it might make things a bit messy without the formatting, we'll see... maybe I can use str_replace instead to replace the more important tags some formatting
<8> *with some <10> what are you doing ? <8> right now, trying to figure out how to use strip_tags within a curl session... tricky <10> why is that tricky? <10> you've got the result in a variable, just run strip tags on it <10> what are you doing, though? what is your purpose <8> well, I need to do a lot of research every week for my website, gathering information from various sites -- I'm just trying to speed up the process and save some time by automating most of this <10> that doesn't explain why you need to strip the html tags <8> and I don't really have a variable... the code I'm using grabs the url and copies the content directly to a file... then again, I just pasted the example from php.net and am experimenting with it, never used curl before this, so I might be missing something <8> well, because if I don't I just end up with the source code which is more difficult to read then plain text... and yeah, I know, I could open it in a browser, but that would take longer especially with a couple of these sites that have a horrible layout and take a long time to load, so just showing the plain text would go much faster <11> Hi there, when using the system() function, does the page wait until the program the function is excuting finishes before continuing? <12> sort of <2> yes <12> use exec() redirect output out <11> no thats fine i wanted to use microtime to see how long the command takes to finish executing. <12> ah <13> I'm looking for a good simple encapsulation of expat. I found http://keithdevens.com/software/phpxml but it seems to be buggy and haven't been updated in two years. Does anyone know of a similarly simple piece of software? <0> Woof! <12> so wrong you was ? <2> it's not yours! It's MY SQL!!! <14> hahaha <14> that was terrible <8> wow, and all that time I thought it was *mine* heh <5> well that wasn't very nice Vylen <15> such hostility <16> well, i was only trying to smash a strawberry <5> hehe <17> If I paste the sample code for str_split (from php.net) into my script I get no output after those lines. Ideas? <7> Set error_reporting(E_ALL) and see if you get any errors. <17> thanks <17> nothing changes <17> if you want to see the code... #flood <7> !tell kd5uzz about pastebin <18> hello folks <19> good evening, Chris <17> http://hashphp.org/pastebin?pid=6122 <18> i remeber u itrebal.. u have been very helpful to me :) <20> ChrisCalip: dont use 'u' <16> u u u u u <20> Vylen: :) <16> a e i o _ <20> and sometimes y! <16> y? <20> i dunno <16> lol <2> dammit <7> 'Damn that tab completion!' <2> yup *curses* <7> Stormchaser: And you're not going to kick Vylen now? <2> FlamingCows: If you insist... <7> I suggest, not insist. :) <18> guys.. how would i measure the decrease of speed between using good old procedural code, to an object oriented code? <16> well, i thought my "y?" was semi-smart... y? -> why? or "y"? <7> It wasn't. <20> ChrisCalip: define(START_TIME, microtime()); <18> any other suggestions? <2> you can go run around in underwear, if you want... <21> itrebal, define('START_TIME'... its not a constant yet, it still needs to be delimited by quotes <20> masquerade: woops... <10> ChrisCalip: obviously oop is going to be slower <16> http://www.canada.com/nationalpost/news/story.html?id=bc7c54d4-29ec-47b4-b348-e6b222cda4e4 this is interesting <18> true.. it is.. i just want to quantify if I can live with a slower site but a speedier production time. <22> ya, saw that in another place. <10> ChrisCalip: someone has told you how <18> aidan : true, just want to know if there is a better way to quantify.. ill probably start using it on command line for m*** testing.
Return to
#php or Go to some related
logs:
#css #oe /usr/bin/ld: cannot find -lperl nvidia libglx etch mysql select * from table where float=
wifi library fedora dlink 630 ubuntu font not found vnc harassarah how to use apt get dependincies linux close pts/1
|
|