| |
| |
| |
|
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> kodekrash: ah <1> prp: nope... I'm sure you can figure it out :) <1> itrebal: their DB cluster is HIDEOUSLY slow <2> kodekrash: hmm <3> hi <3> if i use basename() on my filepath and name <3> if i want to use the variable in a url and the filename has spaces in it <3> do i need to url encode it or something <1> yes <4> kodekrash: it doesn't... it should be possible somehow... to do call_user_func($array[0], array_slice($array, 1)) without actually copying the array, just p***ing the reference to the second element of the array as a new array <4> 'cause array_slice() works for what I want, but I'm sure it's inefficient <1> Kronuz: probably.... not sure how without looking into your code some more... and I can't do that this weekend... I have a deadline in 6 hrs :p <4> oh okay, I'll keep trying... there should be some way of doing it using the darks side of php :P <1> Kronuz: like I said... I wrote a loadable module framework in PHP, years ago... using the basic concept you're trying to do... it works... I just don't recall the details off the top of my head <4> kodekrash: yeah, well... thanks, I'll keep trying. Good luck with your project :) <2> kodekrash: done, it works perfect thank you for all the trouble
<3> HM <3> i urlencode my filepath/name and it put "+" in the spaces <5> Kronuz: consider grabbing the smarty source and pulling it apart <5> Kronuz: you'd need to rip a heap of code out though <3> shouldnt it of done %20% or something <6> morning <7> what is the function where i can have 5 filled in characters -- so a "1" turns into a "000001" right / left ... fill ? <7> i can't remember can someone help? <8> sprtinf ? <8> *sprintf <7> is that it? thanks i'll look it up <9> hi <9> how can i make this <9> so when someone clicks on the name <7> i could sware it was something else <9> it goes 2 the page <9> user.php?id= (his id here ) <9> print '<b>Firstname: </b><a href="'. $id .'"></a><br>'; <9> ? <4> how inefficient is array_shift() ? <4> does it copy the whole array? <9> someone help? <9> lol <9> PRETTY PLZ? <9> lol <7> Jivedue ! i found it -- str_pad !! <7> thanks Jivedue :) <9> HELPPPP:( <4> kuja: would you use call_user_func_array($function[0], array_slice($function,1)) or call_user_func_array(array_shift($function), $function) ? which one you think is faster? <9> print '<b>Firstname: </b><a href="'. $id .'"></a><br>'; <-How can i make that go to the users link when someone clicks on it? <9> like <9> user.php?id=2 or 3 or 4 <10> print '<b>Firstname: </b><a href="user.php?id=' . $id . '">Link Here</a><br />'; <11> bo0o: you *DO* know basic HTML, right? <12> Kronuz: The latter is probably significantly faster. <9> thanks Viflux <9> lol <4> kuja: that's what I thought, thanks :) <12> You're welcome. <9> anyone kno where i can get a simple really simple picture uploader? <11> !+file-upload <13> Uploading files with PHP, the 101 version: http://www.php.net/features.file-upload <9> wow lol <9> thanks! <0> bo0o: before you do anything with that, it's EXTREMLY difficult to make absolute sure that its actaully an image, short from testing it yourself - therefore they could (worst case) upload any script that can, and sometimes upload viruses embeded into images <14> getimagesize <0> Jymmm: not perfect solution <14> itrebal it check the headers of the file <0> Jymmm: you can fake those... if i can find the link about it, i'll show it to ya <9> o <14> itrebal: It's the BEST sound solution. <9> yeah ur right itrenbal <9> thanks :) <0> !tell bo0o about u <11> !+typing english <13> ##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced, furthermore, inability to adapt may result in a ban. <0> Jymmm: what about using `file` ? <14> itrebal: to determine if an uploaded grpahic is really a grpahic? <0> Jymmm: is it just as vulnerable? <14> itrebal: Are we talking JUST graphics? <0> yes
<15> wouldn't the file need to be renamed to do damage? <14> philip: No, I tried renaming a gif to JPG, getimagesize was able to determine that it was a GIF <11> Jymmm: MIME can be easily faked. <15> i mean, to damage a computer <14> Stormchaser This have NOTHIGN todo with MIME <11> sure it does <14> getimagesize doesn't care about extension <11> MIME != file extension <16> depends on how getimagesize works <14> I could name a graphic blah.zip and it will still be able to determine that it's a JPG file. <17> thanks storm <16> if you know how it determins file type <16> you could easily fake the data necessary <14> Sure ANYTHING is possible, if your that worried unplug the network cable to be completely safe. <16> hehe :P <9> !php-bot "include <17> any good tutorials on gdimage, specifically on changing the width/height of an uploaded image? <16> I don't see why that would be a problem though, unless you do something silly like include($_POST['var']) :P <11> getimagesize doesn't give a damn about file extensions, tho <15> my users are all nice little angels <9> !php-bot help <11> computersolution: php.net/image <18> hey, whats a good way to temporarily update an element in an array, and then have it changed back to the original element after it is through with a loop? <17> thanks <16> volcom: duplicate the array into a new variable? <15> perhaps some sort of merge at some point <18> hmm... well i tried saving the element into a variable, then updating the element in the array then at the end, updating the array again with my "saved" variable <18> i figured this would work, but wasnt all that successful :P <15> if it's logical, it can be implemented :) <14> philip: "That is illogical" <19> anyone familiar with php-java-bridge? I am trying to iterate in php through a returned HashMap object. <14> </MrSpock> <15> :) <14> </MrSpock - Live long and prosper> <19> everything is working, and I have the object, just can't get ->current() / ->next() working <11> bo0o: PLease talk to php-bot in private <15> sure is a long topic :) <14> philip blame the dumb***es <15> i've gone my entire life without really learning or using OOP, but am going to learn it here within the coming months <0> "RTF Guidelines: //joinmsg php-bot guidelines" woops <14> philip why? <15> am taking c++ <15> and it seems good to know oop :) <14> philip: Ah, well with C++ you really have no choice - thus why I like C ? <14> err . <15> learning c now, creating my first make file this weekend too :) <14> philip hello world? <0> Jymmm: hello world doesnt exactly take a make file <15> an application that accepts test scores and outputs statistics :) <15> pretty exciting i know <14> philip: heh. GUI or CLI ? <20> ha ha, my wife is trapped in the bathroom, pooped, and has no toilet paper <15> cli <0> haha, make her use her hand... and not get any for a month <14> b1n0ry you know payback is a bitch <20> itrebal: and that would be different from now how? <0> b1n0ry: ouch <15> seems odd to define functions in header files, as the function definition itself defines it too :) <20> i said "wife" not "girlfriend" <20> main difference = less *** and i don't get to keep anything if we break up <0> he <15> marriage... <14> LOL --> Medium Density Fiberboard is composed of sawdust, and a specially formulated resin (glue) which is mixed together. <0> you gotta keep your pimp hand strong :) <20> Jymmm: yep, pretty much. i make a lot out of it <15> have any of you created a php extension? <0> philip: sure have <20> philip: yeah, usually just like rename filename filename.php <14> b1n0ry: I was laughing at the 'glue' part of that statment <20> Jymmm: oh, hehe, though resin and glue are not the same thing <20> resin is a plastic <15> itrebal: is it fun? :) <14> b1n0ry resin/glue same diff in this case...
Return to
#php or Go to some related
logs:
hardddisk repair
#web #perl #javascript perl dppassword how touch chroot Function not implemented #php #debian install xubuntu 640*480 #math
|
|