| |
| |
| |
|
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
Comments:
<0> BigE: what would be an effective useage? <1> I was using database name of 'site' instead of 'sites' <0> BigE: larger bodies of text? <2> itrebal: Would you like to debug a full page of heredoc? :P <0> BigE: hell no :) <0> BigE: but, i dont use heredoc, if i can avoid it <2> Same here. <2> I've only had a few uses for it. <3> Is there a way to send the results of QuickForm to an email <0> inono: as in... HTML_QuickForm ? <3> yes <4> is there a way to alphebtize an array?, i.e, move around the position of the keys based on A-Z ? <0> when you process the form, you just have it send it in an email.... <0> but, #pear
<5> anyone here? <6> ya <6> ask <5> hang on im gonna put it in pastebin <7> arccd, look at ksort () <5> http://pastebin.com/595297 <8> is it possible to get the value of the innerHTML of an element with an ID <8> using php <9> Of what element? <5> i get undefined variable line 31 <5> 30* <9> aspekt`- go read about $_POST <9> And $_GET for that matter <10> http://php.net/variables.predefined to be exact <5> ok <11> on one server I can use this: if($page == "about") but on another I have to do like this: if($_GET['page'] == "about") <11> is that some setting on the server php.ini or something else? <5> I've read about them both <12> antix, youre looking for register_globals <12> antix, notice that $_GET will work on both, and its the best method. <11> colde, ok thanks! <13> can someone tell me what a T_LNUMBER is? <14> where is the oracle module in php5 ? <15> Punkcut: What's the full error message you're getting? <14> aaah n/m found it heh <16> greetings <13> Elazar : unexpected T_LNUMBER - Parse error: parse error, unexpected T_LNUMBER in <17> Punkcut, its just a parser token: http://www.php.net/tokens <13> hey this is a nifty page <14> pear/Calendar is not valid ! <18> ... not valid, okay <14> im trying to install pear/Calendar <14> keep getting Invalid <19> pear install Calendar <18> Pir8: perhaps you could provide some useful information... perhaps <20> aidan: that'd be asking to much, no? <18> like, HOW you are trying to install it, and what ACTUAL error you are getting <14> pear install Calendar <14> http://hashphp.org/pastebin?pid=6297 <18> Pir8: have you read the error message? <18> specifically about the latest version <18> pear install Calendar-beta <14> aaah ok <14> had to specify Calendar-0.5.3 <14> my bad, didnt read the error carefully :( <18> you know that's incredibly annoying, right? <21> any here have experience with writting JS to file? <21> like to create a .js file <14> aidan yes I realize that. <18> ironpig: ... it's just a plaintext file <22> main, 5.1.2 has some issues with notices... <18> no, 5.1.2 has issues with invalid code <23> from the following http://pastebin.com/595382 what's the best method to extract latt and longitude? <24> dools: If you just mean the large amount of them, you do have control over what is displayed in the page, what is logged to your error-log file, etc. <18> hutch_: simplexml <21> aidan, can you look at a piece of code? its not the whole thing, this the part thats screwing stuff up <22> Tresnar: i upgraded from 5.0.4 yesterday, 0 notices, now bam!! it sends out notices for missing function arguments and _then_ says that the variable is undefined. that's not right. also loads of places where i had if($object) send out hte notice 'object could not be converted to in' <18> ironpig: paste it in a pastebin and let everyone look <22> int <18> dools: write proper code then <21> http://pastebin.com/595251
<18> dools: clearly you've changed your error_reporting level <22> aidan: nah, always had E_ALL <21> its writting js to file, and then I load that file into another .php with include. <22> aidan: you saying that if($object) is not proper? <18> dools: yes, of course, what the hell is that code meant to do? <18> ironpig: why would you include js code? <23> \msg aidan pre php5? <18> ironpig: readfile it if you want it to be displayed in the html <18> dools: logically, what do you think that code should do? <22> aidan: check if a variable is set to anything <22> aidan: ie. $var = ''; $var = new Cl***(); if($var) <18> dools: ... an object doesn't have a value, so how could php do that? <25> hutch_: Don't /msg people if they don't permit you... <26> dools: what is your error_reporting setting in php.ini? <22> SDE: E_ALL <22> aidan: well 5.0.4 had no probs with it <18> dools: if you want to see whether the object exists, use if (isset($object)), if you want to see if it's an object, if (issset($object) && is_object($object)) { <26> dools: was php4 setup as E_ALL ? <21> readfile? is that a function? <18> dools: write proper code and you won't have a problem <18> ironpig; php.net/readfile, you tell me <21> thanks <22> aidan: and it has no prob with it in a simple example, but just something to do with some of my object instances <18> dools: write proper code and you won't have a problem <26> oh lord, what gret advice <22> aidan: i fail to see how it's not proper code at all, and previous version of php had no problem and it's a pain to go back and redo it. i'm perfectly aware of other methods for ensuring a variable is an object <22> aidan: i think you're just getting on your high horse <26> php snobs need enimas. <18> dools: if ($object) doesn't mean anything logically. if() tests if something returns true or false. An object doesn't return true or false. I think it's pretty obvious. <27> if i have a array("name" => "value"); and i want the nth array item <27> how can i give it a int and get back the name and value? <22> aidan: $var = ''; if($var) { //do something } <26> i forgot when php turned into a strictly typed language. <28> SDE, did it? <26> sorry julian, sarcasm. <18> dools: that typecasts $var to true or false. You can't typecast an object. Your code is still wrong in that example, but it will work. <26> that explains his notices. lol. <22> aidan: it's not wrong at all! '' evaluates to false in php. its the same as saying if 0 <26> dools: was your php4 php.ini file set to report all ? <22> SDE: it was 5.0.4 <26> oh, same php.ini file? <22> SDE: yeah <18> dools: it is wrong, are you testing to see if the variable is set, or if the variable has a non-false value? someone reading your code has no idea - that's why it's wrong. <26> so you actually want notices printed? ok. i dunno why the behavior changed that. interesting. <22> xeer: you can use $arr = array_keys(); $key = $arr[$n]; <22> aidan: if i was testing to see if it was set, it would be isset($var) <18> dools: right, so do the same with your objects?!?!? <22> aidan: but the variable _is_ set <22> aidan: it's set to false <22> aidan: by default, in the constructor of the cl*** <18> it's not set to false, it's set to '', which evaluates as false <18> dools: one line per thought, please <22> aidan: so is_object would be the best way, or even instanceof <18> dools: ... so do it? why are you telling me what I just told you <22> aidan: because if($var) doesn't require a function call, is faster to write, and worked up until php 5.1.2! <26> his original question was about the notices. regardless if it is 'proper code standards' or not, it would be interesting to know why notices get thrown now. <29> If I wanto check to variable to see if their value is the same what should I use? <22> outlaw84: == <18> dools: if ($object) { works fine in php5.1.2, I don't get any notices thrown <29> I tryed 'if(var1 != var2) but that didn't do the trick <30> "You can't typecast an object" err, actually you can <18> outlaw84: if ($var1 === $var2) { <22> colder-: when did i say that?! <18> colder-: yes, you can <18> I said that <22> oh <18> you can typecast it to an array <22> aidan: or a string <22> aidan: or an int <22> aidan: sorry, that was two thoughts that occurred in quick succession <18> to an int or string isn't valid, in my opinion (unless you have __toString defined) <30> to a boolean is plain stupid, it will return true :) <31> So __ is magic. <29> Its just not working with ==...
Return to
#php or Go to some related
logs:
#php installing Eterm on Ubuntu #osdev rug suse unable to create installation source #web symerian #mysql #linux #lisp MYsql manual select * from and
|
|