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

<0> d3vlabs: i guess that would depend on where you're inserting it
<1> d3vlabs, look at echo() or print() in the manual
<0> colder: ok, really weird. i uploaded that same script to my home testing server and it throws an error.
<2> the module above ends in echo '</div>';
<3> b1n0ry, what version are your running ?
<0> let me look
<2> i tried echo <a href="http://www.google.com">google</a>;
<2> but that didnt fly either
<2> err echo with a ' :: echo '
<0> colder: 5.0.4 and 5.0.4 at home
<0> maybe something is screwy with the build
<0> there is no way i should be able to access $this->message from within the DB construct
<4> Why?
<1> Aren't you supposed to implement abstract cl***es, not extend them?
<5> do fools fall in love...
<6> you implement interfaces.



<0> Pollita: because $message is declared as private in the cl*** parent to DB
<4> Julian: You can extend an abstract cl*** as another abstract cl***, but that's kinda silly in most cases
<1> Alright
<4> binory: Ah, then yes.
<0> Pollita: weird thing is one one system, i can and on another i can't
<0> Pollita: i'm just trying to figure out why i can on this system.
<4> because something is different
<1> Maybe zend compatibility mode is on?
<5> Pollita will you marry me?
<0> php versions are the same
<1> b1n0ry, check php.ini
<0> code is identical
<4> Jymmm: I'll hafta ask my mom first
<0> Julian|Work: zend compatibility?
<1> b1n0ry, zend.ze1_compatibility_mode
<5> Pollita: while your at it, ask your wife too.
<0> Julian|Work: that would allow me to access private variables outside of a cl***?
<4> good thinkin'
<1> b1n0ry: it's a good guess, isn't it?
<5> Pollita if they say no, tell them I'll share my bubble gum collection
<0> i wonder if i can access the variable outside of the child cl*** declaration
<4> b1nory: If it did I'd smack Andi upside the head with Dimitri
<5> lol
<0> Pollita: i can't. but i wonder why i can the other way. did you see my code example?
<4> nope, didn't
<0> Pollita: http://pastebin.com/575542
<0> Pollita: i should be getting an error on line 31 but instead i get output: This is an error.
<7> o.O
<0> weird thing is, i uploaded the same script to my system at home and it does give me an error.
<4> oh, wait
<4> no
<8> Pollita, ! :D
<4> hrmmm works here too
<0> home gives me Notice: Undefined property: DB::$message in /home/<void>/public_html/include/db/db.inc.php on line 31
<0> Pollita: it's giving you output?
<4> well... sorta
<4> ah, I know what it's doing
<0> Pollita: is it getting confused?
<4> Yeah.
<4> 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)
<0> Pollita: but it doesn't have any of those, so is it trying private?
<4> It's never actually trying to access \0DB_framework\0message
<0> Pollita: then why is it actually echo'ing something?
<4> Nah, if none are set it implicitly creates a public var (like it would for any other variable)
<4> binory: It's not,
<4> At least.... not for me :)
<0> on line 31, i have one system here that it is
<0> i have one system (this dev box) that it's actually outputting 'This is an error.' on that line.
<0> i'm using the parent defined setError function to set that error message on line 29
<4> I return to my original statement. You've got something different on that system.
<0> yeah, a bad build i would suspect
<4> No, I mean something else in that program.
<0> Pollita: that's the whole program
<0> right now, that's all it is
<4> $this->message *can't* just "accidently" find it's parent's private variable
<0> i have no idea what's going on
<4> That's like: char bar, *foo = (char*)rand(); *foo = 0; actually working and setting bar to 0.
<9> 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.
<9> Do I need to extract the day, month, year, etc?
<4> Sun: Reverse the order



<8> SuN, strtotime() < time()
<10> The only sensible date format for comparison is year, month, day.
<4> Strings are compared with the left edge being the most significant value.
<0> Pollita: something screwey, i don't know what. going to try to recompile php and see what happens.
<9> Ahh, reversing it worked.
<9> Thanks
<11> $ratio = $settings.info_box_withdraw_funds_generated / $settings.info_box_deposit_funds_generated * 100;
<11> Isnt that right ?
<9> I figured it'd take the order into account, since I was specifying day, month, year.
<4> Denn: No.
<8> Denn, no, . is concat
<4> . is the concat operator
<4> You probably want ->
<12> Denn: is $settings an object? or is info_box_withdraw_funcs_generated a constant? O_o
<0> or maybe i have something else going on i haven't seen yet
<4> b1nory: I told you. There's something else in your script. You just havn't noticed it yet.
<4> b1nory: Once you eliminate the impossible, whatever remains (no matter how improbable) must be the truth.
<0> ha ha, i figured it out!
<4> Do tell
<13> anyone have an idea why preg_match returns an empty array instantly no matter what my pattern is on a huuuge 5.1mb file?
<8> fires, pastebin
<0> 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.
<13> http://pastebin.com/575585
<4> b1nory: Who are you not going to doubt?
<13> if i echo $page i get the html file, so i know its in there
<0> '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.
<8> Pollita, have you started writing your slides yet? :/
<0> ok, i gotta go config a system for a guy. catch ya'll later.
<0> thanks for finding my stupid problem
<13> anyone have any ideas?
<4> Sherlock found t
<0> or rather, pointing me to figure out what a dumb*** i can be
<4> it
<14> does anyone use any sort of personal task manager to keep track of what they need to get done each day / week ?
<4> "<4> b1nory: Once you eliminate the impossible, whatever remains (no matter how improbable) must be the truth." <--- Sir A. Conan D. beyotches....
<15> DUMB*** -----> b1n0ry <----- DUMB***
<0> (_Y_)
<16> 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 ?
<8> 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 :)
<5> b1n0ry "That's a paddlin!"
<0> no kidding, cached copy problems
<0> i'll remember that from now on
<17> would fopen(myFunction(),"r") work if myFunction() returned a url?
<18> Jymmm: d'you know about the Babbage Difference Engine?
<13> nobody knows? or nobody cares :-[
<5> itrebal the whaaaaaaaa?
<1> arpegius, try it.
<18> Jymmm: nevermind then... http://www.wikipedia.org/wiki/Difference_engine
<14> fires .... in line 30 .. you dont say echo .....
<1> fires, have you tested $page after line 2?
<14> fires: and dont use short tags ... <? == bad.... <?php == good
<1> Maybe it's not retrieving the file.
<13> i tested $page after the file_get_contents, and it has it
<13> Tac_Work: think you're talking to the wrong guy...
<4> 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****"
<19> Hey, what's a regex that filters only numbers but all numbers from "(660)829-99a78z4df8"?
<4> Truth be told, I'm more worried about coming up with a headshot to send sean
<8> haha, yeah. LMAO
<4> madsara: s/[^\d]//
<4> erm scratch the ^
<17> Julian|Work works ;-).
<13> the preg_match just isn't returning anything for some reason
<19> Thanks Pollita. What's the s stand for?
<1> arpegius: ;]
<13> well except for an empty array
<4> <meeting/>
<13> but it isn't even running, it would take way longer
<20> madsara: this may help as well: http://www.phpguru.org/downloads/PCRE%20Cheat%20Sheet/PHP%20PCRE%20Cheat%20Sheet.pdf
<21> 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