@# 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 30 31 32 33



Comments:

<b1n0ry> d3vlabs: i guess that would depend on where you're inserting it
<Julian|Work> d3vlabs, look at echo() or print() in the manual
<b1n0ry> colder: ok, really weird. i uploaded that same script to my home testing server and it throws an error.
<d3vlabs> the module above ends in echo '</div>';
<colder> b1n0ry, what version are your running ?
<b1n0ry> let me look
<d3vlabs> i tried echo <a href="http://www.google.com">google</a>;
<d3vlabs> but that didnt fly either
<d3vlabs> err echo with a ' :: echo '
<b1n0ry> colder: 5.0.4 and 5.0.4 at home
<b1n0ry> maybe something is screwy with the build
<b1n0ry> there is no way i should be able to access $this->message from within the DB construct
<Pollita> Why?
<Julian|Work> Aren't you supposed to implement abstract cl***es, not extend them?
<Jymmm> do fools fall in love...
<Xyphoid> you implement interfaces.
<b1n0ry> Pollita: because $message is declared as private in the cl*** parent to DB
<Pollita> Julian: You can extend an abstract cl*** as another abstract cl***, but that's kinda silly in most cases
<Julian|Work> Alright
<Pollita> binory: Ah, then yes.
<b1n0ry> Pollita: weird thing is one one system, i can and on another i can't
<b1n0ry> Pollita: i'm just trying to figure out why i can on this system.
<Pollita> because something is different
<Julian|Work> Maybe zend compatibility mode is on?
<Jymmm> Pollita will you marry me?
<b1n0ry> php versions are the same
<Julian|Work> b1n0ry, check php.ini
<b1n0ry> code is identical
<Pollita> Jymmm: I'll hafta ask my mom first
<b1n0ry> Julian|Work: zend compatibility?
<Julian|Work> b1n0ry, zend.ze1_compatibility_mode
<Jymmm> Pollita: while your at it, ask your wife too.
<b1n0ry> Julian|Work: that would allow me to access private variables outside of a cl***?
<Pollita> good thinkin'
<Julian|Work> b1n0ry: it's a good guess, isn't it?
<Jymmm> Pollita if they say no, tell them I'll share my bubble gum collection
<b1n0ry> i wonder if i can access the variable outside of the child cl*** declaration
<Pollita> b1nory: If it did I'd smack Andi upside the head with Dimitri
<Jymmm> lol
<b1n0ry> Pollita: i can't. but i wonder why i can the other way. did you see my code example?
<Pollita> nope, didn't
<b1n0ry> Pollita: http://pastebin.com/575542
<b1n0ry> Pollita: i should be getting an error on line 31 but instead i get output: This is an error.
<Stormchaser> o.O
<b1n0ry> weird thing is, i uploaded the same script to my system at home and it does give me an error.
<Pollita> oh, wait
<Pollita> no
<Davey|Work> Pollita, ! :D
<Pollita> hrmmm works here too
<b1n0ry> home gives me Notice: Undefined property: DB::$message in /home/<void>/public_html/include/db/db.inc.php on line 31
<b1n0ry> Pollita: it's giving you output?
<Pollita> well... sorta
<Pollita> ah, I know what it's doing
<b1n0ry> Pollita: is it getting confused?
<Pollita> Yeah.
<Pollita> When you try to ech $this->message it looks for it's own private var (\0DB\0message) then for a protected var (\0*\0message) then for a public var (message)
<b1n0ry> Pollita: but it doesn't have any of those, so is it trying private?
<Pollita> It's never actually trying to access \0DB_framework\0message
<b1n0ry> Pollita: then why is it actually echo'ing something?
<Pollita> Nah, if none are set it implicitly creates a public var (like it would for any other variable)
<Pollita> binory: It's not,
<Pollita> At least.... not for me :)
<b1n0ry> on line 31, i have one system here that it is
<b1n0ry> i have one system (this dev box) that it's actually outputting 'This is an error.' on that line.
<b1n0ry> i'm using the parent defined setError function to set that error message on line 29
<Pollita> I return to my original statement. You've got something different on that system.
<b1n0ry> yeah, a bad build i would suspect
<Pollita> No, I mean something else in that program.
<b1n0ry> Pollita: that's the whole program
<b1n0ry> right now, that's all it is
<Pollita> $this->message *can't* just "accidently" find it's parent's private variable
<b1n0ry> i have no idea what's going on
<Pollita> That's like: char bar, *foo = (char*)rand(); *foo = 0; actually working and setting bar to 0.
<SuN> Hi -- what's the easiest way to check if the current date is before a certain date? if(date("d-m-Y") < "01-06-2006"){ doesn't seem to do the trick.
<SuN> Do I need to extract the day, month, year, etc?
<Pollita> Sun: Reverse the order
<Davey|Work> SuN, strtotime() < time()
<mattmcc> The only sensible date format for comparison is year, month, day.
<Pollita> Strings are compared with the left edge being the most significant value.
<b1n0ry> Pollita: something screwey, i don't know what. going to try to recompile php and see what happens.
<SuN> Ahh, reversing it worked.
<SuN> Thanks
<Denn> $ratio = $settings.info_box_withdraw_funds_generated / $settings.info_box_deposit_funds_generated * 100;
<Denn> Isnt that right ?
<SuN> I figured it'd take the order into account, since I was specifying day, month, year.
<Pollita> Denn: No.
<Davey|Work> Denn, no, . is concat
<Pollita> . is the concat operator
<Pollita> You probably want ->
<Dangermouse> Denn: is $settings an object? or is info_box_withdraw_funcs_generated a constant? O_o
<b1n0ry> or maybe i have something else going on i haven't seen yet
<Pollita> b1nory: I told you. There's something else in your script. You just havn't noticed it yet.
<Pollita> b1nory: Once you eliminate the impossible, whatever remains (no matter how improbable) must be the truth.
<b1n0ry> ha ha, i figured it out!
<Pollita> Do tell
<fires> anyone have an idea why preg_match returns an empty array instantly no matter what my pattern is on a huuuge 5.1mb file?
<Davey|Work> fires, pastebin
<b1n0ry> damn dreamweaver (which i normally avoid like the plague) i made the changes on the 'local' side and hadn't uploaded it. script was different.
<fires> http://pastebin.com/575585
<Pollita> b1nory: Who are you not going to doubt?
<fires> if i echo $page i get the html file, so i know its in there
<b1n0ry> 'local' script was crap, threw the error just like it should have after i forced a sync. before that, it was running the server copy which had no error.
<Davey|Work> Pollita, have you started writing your slides yet? :/
<b1n0ry> ok, i gotta go config a system for a guy. catch ya'll later.
<b1n0ry> thanks for finding my stupid problem
<fires> anyone have any ideas?
<Pollita> Sherlock found t
<b1n0ry> or rather, pointing me to figure out what a dumb*** i can be
<Pollita> it
<Tac_Work> does anyone use any sort of personal task manager to keep track of what they need to get done each day / week ?
<Pollita> "<Pollita> b1nory: Once you eliminate the impossible, whatever remains (no matter how improbable) must be the truth." <--- Sir A. Conan D. beyotches....
<Red70sShow> DUMB*** -----> b1n0ry <----- DUMB***
<b1n0ry> (_Y_)
<KuZz> Hey guys, anyone have any idea why the line echo "Dest: $destination"; wont echo it's data like it should in http://pastebin.com/575589 ?
<Davey|Work> Pollita, I have no idea how many slides I'm gonna need. I'm upto like 16 so far. think that'll cover about 5 minutes. But now I'm past the intro and such :)
<Jymmm> b1n0ry "That's a paddlin!"
<b1n0ry> no kidding, cached copy problems
<b1n0ry> i'll remember that from now on
<arpegius> would fopen(myFunction(),"r") work if myFunction() returned a url?
<itrebal> Jymmm: d'you know about the Babbage Difference Engine?
<fires> nobody knows? or nobody cares :-[
<Jymmm> itrebal the whaaaaaaaa?
<Julian|Work> arpegius, try it.
<itrebal> Jymmm: nevermind then... http://www.wikipedia.org/wiki/Difference_engine
<Tac_Work> fires .... in line 30 .. you dont say echo .....
<Julian|Work> fires, have you tested $page after line 2?
<Tac_Work> fires: and dont use short tags ... <? == bad.... <?php == good
<Julian|Work> Maybe it's not retrieving the file.
<fires> i tested $page after the file_get_contents, and it has it
<fires> Tac_Work: think you're talking to the wrong guy...
<Pollita> Davey: All depends on your speed. I really have no experience so I'm going to shoot for having way too much content. "If you can't dazzle 'em with brilliance, baffle 'em with bull****"
<madsara> Hey, what's a regex that filters only numbers but all numbers from "(660)829-99a78z4df8"?
<Pollita> Truth be told, I'm more worried about coming up with a headshot to send sean
<Davey|Work> haha, yeah. LMAO
<Pollita> madsara: s/[^\d]//
<Pollita> erm scratch the ^
<arpegius> Julian|Work works ;-).
<fires> the preg_match just isn't returning anything for some reason
<madsara> Thanks Pollita. What's the s stand for?
<Julian|Work> arpegius: ;]
<fires> well except for an empty array
<Pollita> <meeting/>
<fires> but it isn't even running, it would take way longer
<^Artnez> madsara: this may help as well: http://www.phpguru.org/downloads/PCRE%20Cheat%20Sheet/PHP%20PCRE%20Cheat%20Sheet.pdf
<r00t> question: is there some way to pipe the output of php scripts running on apache through another program (i.e. a html pretty-printer) before serving it to the client?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

iptables -A OUTPUT ESTABLISHED,RELATED -j ACCEPT mean
solaris reload fstab
ubuntu pcsx2
uninterruptible process ubuntu kill
etch Cannot find rfc822.h
DaveBSD
Kaffeiene
suse unrm
Error: couldn't find RGB GLX visual ubuntu ati
sourceomatic



Home  |  disclaimer  |  contact  |  submit quotes