| |
| |
| |
|
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 35
Comments:
<0> nah. it's not a stupid thing. it's just the good old fashion way <1> haha <2> stedios: It's a C thing, btw. <3> hello <4> Hey <3> i'm a newbie <3> i'm trying to figure out a script I just pulled offline <5> kuja: I love to be insulted. my fav past time :) <5> does anyone have an answer to my question though? <2> Kaitlyn: 80%+ PHP coders are stupid. That's the insult :) <2> Kaitlyn: It's up to you to become part of the 20%. <5> kuja: haha <3> I'm trying to make a hit counter script <5> SOMEONE help me! *goes crazy* <2> Kaitlyn: A big reason being is that many of them don't have a prior programming background, because PHP is similar to C in a procedural aspect and similar to Java in an OO aspect.
<6> I think next time I have a problem that's stupid and I know i'm just retarded, i'm going to change my name to something feminine like "Shelly" or "NicoleGirl" and get all the attention and help I could ever need <7> krl: what's the problem? <3> i'm trying to get how fopen works <2> Of course, lig is an exception... <7> krl: http://php.net/fopen <5> kuja: my error_reporting() question - ANSWER IT <2> And well, Pollita doesn't need help, she's smarter than most :) <6> Pollita helps me <3> is there anything special I need to do to make a file able to be opened by IIS? <2> Kaitlyn: Eh? <6> krl: use something other than IIS <7> Kaitlyn: error_reporting(E_ALL ^ E_NOTICE) should work as intended <3> :) <5> wisp: it does indeed not display the notices to the screen <5> but for some reason it wrecks my formatting <3> Here's my error Warning: fwrite(): supplied argument is not a valid stream resource "source" on line 20 <7> Kaitlyn: i couldn't tell you why.. seems strange <6> I don't think I make the 20% <5> wisp: hmmm! it seems the only workaround I can think of is just set a custom error handler and don't output aynthing :S <2> tek_: It's almost closer to 10% <5> then it works <5> im so confused <7> krl: guess it's not a valid stream eh? <3> what's that mean? <6> kuja: I agree. I think, personally, you can slice it to the select "l33t" few that to around 6-7% <6> (or... as you pointed out, 10%) <7> Kaitlyn: or fix your E_NOTICE <7> s <7> ;) <7> damn 'return' key.. :/ <5> FINE WISP! <1> at least bottom half of 80% <5> i'll set all my vars <7> krl: did you read http://php.net/fwrite ? <5> lol <7> Kaitlyn: good for you ;) <6> i've written *_a lotttt_* of stuff in PHP. still don't consider myself in that 10% <3> yeah, a little <7> krl: try reading it more.. <3> what's the @ do in: @$fptr = fopen($filename, "w+"); <3> ok <6> krl: ignores errors <3> oh <7> krl: don't use @ <3> ok <6> which is, as wisp just said...a bad idea. <6> @ should be aliased as "@pathy" <6> seriously... <7> errors should be fixed, not ignored.. (yes that's notices too Kaitlyn ;) <7> 'atpathy' ? ;) <3> :) <3> i get a permission denied error that shows up now <6> wisp: whatever "floats your boat"...and or sinks it in this case. <6> what's that saying "taking a bite out of crime"? <7> krl: you must have permission to write to the file.. doh <6> doesn't that **** <5> i can unset($_SESSION) vars right?
<7> Kaitlyn: sure <3> I'm gonna see if I can get if then, ... <8> Yeah, but don't actually unset $_SESSION itself. <8> (As mentioned in the docs.) <5> right :) <6> Kaitlyn: do you understand why? <3> will a stream fail because it doesn't have write permission? <3> fail to open <5> oh great! <9> !+@ <10> [@] The PHP error control operator that suppresses errors (@foo()), see: http://php.net/operators.errorcontrol - Don't use it. Think I'm wrong? Ask me about "GO". <5> now i have no errors left <5> and STILL screwed up output! <5> this makes NO sense to me <7> Kaitlyn: let's see the page <7> krl: no, it will just write anyways.. of course it will fail! <5> wisp: its local page in dev... <7> Kaitlyn: aint got public access? :) <7> let's see a screen shot then.. :P <6> haha <5> found the problem <5> in an included file, in a stylesheet! :) <5> haha <7> :S <5> error_reporting was obviously not set for a page that generates the css <5> doh! <5> thats annoying <5> cause now i CAN go back to hiding notices.. haha <5> or, wait.. some servers don't allow you to change this, do they? <7> Kaitlyn: i've never heard of any that don't <7> Kaitlyn: you *should* still fix them though <5> haha i like the should <5> and i will <5> i echo a lot of $vars which may be blank <5> in which case they ake up no room <5> now i have to set them all to '' <5> or check if they exist, and echo them <5> annoying <7> might be.. <5> haha <7> but why would you wanna echo vars that aren't set? ;) <6> wisp: duh, why not? <5> they are a bunch of visual enhancers... like, maybe a link to the next page... <5> its easier to echo $nextPageLink <5> then if (isset($nextPageLink)) echo $nextPageLink <6> Kaitlyn: you should make it a HABIT to always check variables contents, and if they're set ALSO if they HAVE anything in them or not <7> http://uncyclopedia.org/images/5/5b/Windowsvistamarketing.jpg <-- m$ latest pr move <2> !+m$ <2> Hm <2> Ah <2> !+ms <10> http://mmcc.cx/m$ <2> wisp: That's for you <5> tek_: but.. why? if i echo it and its nothing, then it takes up no room, doesn't affect display formatting.. the user wouldn't know the difference? <6> Kaitlyn: and if it's not set at ALL? <6> Kaitlyn: THEN what happens? <2> Kaitlyn: I'm sorry to say, you are part of the 90% BAD PHP coders. <5> kuja: as long as you're there with me, its okay :) <6> wisp: that vista marketing ad is great. <5> tek_: if there is no notice, then NOTHOING hapens :) <2> Kaitlyn: Nah, I'm far away from you. <6> Kaitlyn: he's not <6> Kaitlyn: Wow, okay. <11> are we having a pissing match over Style? <2> Kaitlyn: Considering I'm the one who comes up with these stats, from general observation. <9> kuja: **** em if they dont want to listen <2> 3 ****ing years of observing people who use PHP. <2> Jymmm: Yeah, you're right. <5> kuja: then you're a traitor <2> Jymmm: What are you up to? Carving stuff? <9> kuja: Designing stuff to carve. <6> Kaitlyn: Hmm... I think it's explicitly obvious where kuja's loyalty lies <2> Jymmm: Ever get around to carving the Chinese character? :) <12> anyone here ever tried smarty?
Return to
#php or Go to some related
logs:
u'\xe0' #debian #linux #mysql ubuntu mount cellphone raw_input() Bad file descriptor #ubuntu #python +ubuntu +build_essential xubuntu lspnp
|
|