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



Comments:

<0> ?
<1> I linked the docs page for it,
<1> There's examples of its use there.
<0> aah, i didnt see that :P
<0> Array ( [imagefile] => Array ( [name] => frog.jpg [type] => [tmp_name] => [error] => 2 [size] => 0 ) )
<1> <nods> My new thought, is that your error is not where you thought it was
<0> huh?
<1> That line is showing that tmp_name is empty, and that there is an error-code set.
<0> oh
<0> what can i do to do it right?
<1> I don't know :)
<1> Btw, if you echo <pre> and </pre> (Before, and then after print_r) you'll get it broken up a bit nicer.
<1> If you look at the sourcecode for the page right now (In your browser), you can all see it broken up onto the separate lines.
<0> its in 2 lines
<1> Something more like... http://hashphp.org/pastebin.php?pid=6868
<1> Is what you'd wind up seeing.



<1> In that format, it's easier to notice the missing values;
<2> Anyone know a quick way to transform a string from ThisCase to this_case?
<0> strtolower()
<1> Anyway. I need to head off for lunch, and also do some work ... Best of luck to you :/
<2> errr, and add the underscore before upper->lowercased letters
<3> does PHP support user-defined types?
<0> thank you Tresnar
<4> Tu13es_: Objects?
<2> come on regexp wizards? :D
<3> hm, maybe?
<3> oh, wait a sec, I can just use an array for this
<3> haha
<3> nevermind :P
<5> anyone in here with a bit knowledge of the Magpie RSS parser?
<6> !+g10
<7> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
<5> Stormchaser sorry, i don't need support for it, i have just 1-2 general questions about it
<6> phr34k: The answer stands the same.
<8> phr34k: We don't make a distinction between "asking questions" and "seeking support"
<9> i have an insert query that takes 1.5hrs to run and doesnt insert anything :(
<6> \o/
<10> how can i transfer my forum from a site to another?
<10> i copy the phpbb2 folder...and then??
<6> then you burn the machione
<6> *machine
<11> http://pastebin.com/737740 <- i think thats be wring, but when i do howami on php with function system() get to me the user apache, what is wrong ? :X
<9> Stormchaser: he better check for data leaking out of the back of the server
<6> Sweet_kate: You heard winmutt... Check if the computer is leaking :)
<12> LOL http://www.amazon.com/gp/product/0964190702/ref=ase_inmandesignwor05/103-8940363-1669436?s=books&v=glance&n=283155&tagActionCode=inmandesignwor05
<10> Stormchaser: sorry dont understand...
<10> :((
<13> anyone have experience with 1and1.com?
<14> are static members supposed to be fully inherited? if I define cl*** A { public static $x; } and cl*** B extends A { } and set self::$x there (works) I get an E_FATAL on calling B::$foo
<12> Scorched: It's more pathetic than humorus.
<15> how do i separate a string the first case a number shows in the string
<6> roger_padactor: What?
<16> roger_padactor: preg_match()
<15> SDCFTGF02345 -> i need evertrying after the F so basically when numbers start
<17> what can I do to make my sessions close when the browser is closed?
<18> if I wanted to download something in php from another website, is there a built-in function for that, or would I have to use something like curl?
<6> Diphilus_: you can't.
<19> TPC: file() or file_get_contents()
<1> TPC: Depending on your settings, the file open/read functions (fopen, and friends) can handle some URLs
<19> but it may be disabled on your server
<19> :-)
<18> ok
<17> Can I set a time for the session to be alive?
<5> how can i post some xml to a script with curl? i have the curl part set up, but how do i tell it what data to post?
<8> phr34k: php.net/curl-setopt
<20> hey guys, whats wrong with this line?:
<20> boolean $food_input_errors == false;
<20> I get a "Parse error: parse error, unexpected T_VARIABLE"
<6> silentt: Um... Many things...
<8> silentt: The word "boolean", for one thing
<20> ok i removed it
<20> i guess it knows it's boolean
<20> if you tell it its true or false : )
<20> neat!
<8> silentt: What exactly did you think "boolean $foo;" was going to do?



<20> i dunno, im used to telling my variables what kind they are
<21> hello. newbie with a simple question that i cant find answer too in the php docs.
<22> silentt, you don't do that in php.
<8> silentt: PHP isn't that kind of language.
<21> how do i change "this" inside object method calls?
<20> yea, i realiaze lol, i tried java before trying to learn php
<8> pjsz: You don't.
<20> so...im unlearning as i go
<8> silentt: Perhaps you should start off learning some of the rudiments of PHP. See php.net/getting-started
<21> drat.
<23> pjsz, overwriting $this is wrong, perhaps you need something like the Proxy or Decorator Design patters?
<21> I'm just porting this simple perl cl*** to php.
<21> Not interested in good oo style or anything at this stage. Just need this to work for php apps.
<21> ta.
<20> TML: nah i don't think im THAT much of a n00b lol ^_^
<20> :P
<8> silentt: You really are
<20> hahaha
<8> silentt: e.g., What do you expect "$foo == false;" to do?
<20> nothing
<6> then why put it there??
<6> -?
<8> Then why did you put: boolean $food_input_errors == false;
<20> well i put it in an IF statement, so that if the necessary things happen, create a boolean variable i can use later
<20> so that if both booleans are false, then output this other thing im working on
<12> cough*bull*****cough
<6> lol
<20> lol i swear it makes sense in my head
<20> i'll post on pastebin when done
<20> : )
<12> silentt get a new brain, yours is defective, return to sender
<20> awww don't have to be mean
<20> :\
<8> silentt: I'd be interested to see where you put the ; in your "if"
<8> boolean $food_input_errors == false;
<8> See the ;?
<8> This is why we doubt your ***ertion.
<12> silentt I dont' blame you as much and I blame your egg/sperm doners.
<12> donors
<20> shhh
<23> Jymmm, Don*o*rs, FYI ;)
<12> Davey Will the REAL SlimShad... err Davey, please stand up
<8> hah
<12> Davey: <12> silentt I dont' blame you as much and I blame your egg/sperm doners.
<12> [05/25 12:48:50] <12> donors
<23> dammit. :/
<6> lol
<12> Davey Tis ok, I blmae your eg/sperm donors too.
<12> blame
<12> egg
<12> oh hell, forget it
<8> Jymmm: ...
<21> function changeThis(&$this) { $this->file = 'Yeah. Explicit'; } $obj->changeThis($obj);
<15> there isn't a funtion that jsut returns the string? of a match preg_match returns an array i just need the string
<21> that seems too work to change this. Is that the way you all would do it?
<8> pjsz: DON'T DO THAT.
<21> why?
<8> pjsz: Because you'll create race conditions in the Zend engine
<21> Whats different than saying $obj->changeThat(&$that);
<21> oh.
<8> pjsz: function changeThis() { $this->file = 'foo'; } $obj->changeThis();
<8> pjsz: The variable "$this" is special.
<8> It always refers to the current instance of the cl***
<21> what you wrote no work.
<8> pjsz: Yes it does.
<23> sure it does
<21> $obj will have changed after the call.
<23> well, ***uming you had a cl*** around it :)
<21> ?
<8> pjsz: Yes.
<23> pjsz, correct, it's basic OO stuff
<8> pjsz: php.net/oop


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#php
/dev/rtc dapper
smartdrive ubuntu
#php
atrpms sucks
make menuconfig syntax error near unexpected token' '} fedora
gentoo squashfs error sb_bread failed reading block
iptables: No chain/target/match by that name +layer7
#kde
unconverted data remains:%s



Home  |  disclaimer  |  contact  |  submit quotes