| |
| |
| |
|
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> Lateralus: Listcomps are god. <1> TML, they're damn convenient, and I love that. But my coworker uses them for _everything_. Everything. His code is unreadable. <2> Lateralus: Being hard to learn, or being like Perl? <0> Lateralus: Well... <2> or both? :) <0> Lateralus: You can write unreadable code in *any* language. :) <3> i'm the only coder on our staff <1> Ceran, Like perl. I didn't find Ruby hard to learn, however. <4> ^Artnez: Meh, more that bad habits are let loose wide in the open for anyone to **** around with :) <1> TML, But in some cases the language helps <0> Lateralus: Nah, every language has its own way of helping. <4> Lateralus: gangsta! <1> kuja, You keep up this gangsta routine and Kim is going to abduct you to train his army.
<4> Lateralus: GANGSTA! :D <5> hello, i'm tring to build a form and submit some data and i wish to preview the page before actually submiting it, but the problem is in that preview there also has got to be a picture that i uploaded with the form, but how can i see that picture without uploading it to my pictures folder on the server ?.. <6> can you refer to an item of an array in another way other then $Array[Item] someway to break it out of [] so its like $array->item ? <6> I have an array of array's and its getting real messy. <7> FatalRemedy: $array[][][][][] :) <8> VisezTrance: you need to upload the picture one way or another. the best thing to do is to first validate to make sure it is a valid image of choice (jpg, gif, etc) and then move it to a temp folder <5> previewing pages will create quite a mess, i'll have many unneeded pictures uploaded <8> VisezTrance: if the image is bad, unlink() it :) <8> VisezTrance: if the user closes their browser for example, the image will stay. in this case you'll need to periodically go through the temporary directory you've established and truncate it <5> well i wanted everything to be smooth .. <9> ;P <5> is there anyway i can clean an entire directory.? <5> as in.. delete everthign within ? <8> VisezTrance: i'm sure you can use rmdir() <10> rmdir will recursively delete files also ? <5> rmdir -R :) ? <8> p0windah: my mistake, i'm wrong it wont <8> VisezTrance: are you using PHP4 or 5? <5> 5 <8> goody :) <8> use the new Iterator functionality <8> i'll send you a link for reference, one sec <1> Jymmm, I love you for pointing out Synergy2. Marry me? <8> VisezTrance: in PHP5, you can loop through an entire dir with this handy little snip: <8> foreach( new RecursiveDirectoryIterator( $path ) as $fullpath => $basepath ) { <11> Lateralus: No, but I will have *** with you anytime you like, how's that? <8> VisezTrance: check the new SPL library for more info: http://us3.php.net/SPL <5> thanks! <4> Lateralus: Let's do something. Come up with a new design pattern. Implement it in PHP, feeling a little bored. Get me a svn repo so we can start. <11> Lateralus: You really should ask BigE to marry you, she's the one that pointed it to me a ways back. <4> rofl, "she" :) <11> kuja what you laughing at you shemale! <4> :'( <11> kuja =) <11> kuja you know you love it <4> Jymmm: Weeeeelll, maybe if you poke me, a little here and there :O <11> kuja: sure, where's my broomstick? <4> Harry Potter stole it, use the pogo stick from now on. <12> i little regex help: http://pastebin.com/575279 <11> !+mre <13> [MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/ <14> hey ya'all is the most prefered method when dealing with managing xml data "DOM" ? <4> tonester: Is that the real question? Or is the real question "what is the easiest way to parse XML?" :P <14> kuja: heheh well I found the EASIEST way <14> SimpleXML was super easy <14> until I needed to add a node <4> Well, sure, I was going to say that :) <4> tonester: Well, if SimpleXML is available, I'd use it :) <4> Jymmm: There is. <14> then I ended up finding this guy that converts xml to an array <11> kuja: Last time I looked, it was icky <14> and back and forth <4> Jymmm: Not sure of anything native, but, there is. Libraries of the exact same name somewhere, in phpcl***es.org (yes, very icky) :P <4> .org or .com? Meh, who cares :P <14> but found that it[ incredibly inefficient and slow <14> with the dataset I am working with it took 3 minutes just to convert the xml doc to a php array <15> how do I print out the URL of the page? <11> !+gv
<13> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre> <14> hehehe <4> dbe: print_r($_SERVER) <4> That will give server related variables. <15> kuja, thx <11> I always mention $GLOBALS, that way they can see all the vars that are availabel to them and MAYBE they'll learn something more than they come in with. <4> Jymmm: Then you get, "HOW DO I ACCESS THE _SERVER ARRAY IN $GLOBALS?!?!?" :) <11> kuja: If they can't figure that one out, they have more troubles. <4> Or, people start doing $GLOBALS['_SERVER'] <4> Jymmm: Yeah... people are retarded :) ... YOU TOO! <11> kuja but i can bitchslap you any time I want. <4> Jymmm: Sooooo, I can still totally call you a retard, which is like, not even an insult, but still... <16> Auuhe. <11> kuja: Yeah, keep pushing it bitch! <17> moin mman ;P <4> $jymmm->push(LIKE_A_BITCH) <4> :D <4> <3 Jymmm <18> keylogger <19> kuja: if it's a constant, it shouldn't be 'like' something, it should 'be' something ;) <17> keylogger <17> Oo <11> FUUUUUUUUUUUUUUUUUUUUCK <4> Someone take care of those two ****wads. <4> caffinated: lol <20> moin shad0w` <4> Jymmm: Guest88438/shad0w`, offenders, rid them! <19> eh? shadow` didn't actually do anything <11> caffinated /topic <19> ah <11> caffinated =) <19> missed that, apologies <21> wtf is that about? <4> caffinated: slow poke. That's what you get for hanging out in #ruby-lang too much! <3 :D <11> Davey they are trojan commands <19> kuja: #ruby-lang is a m***ive dissapointment <21> I see. <4> Davey|Work: And Norton will automatically kick you off IRC if it detects any of the commands <21> I think shad0w was responding to the other guy <4> caffinated: Why so! :( <7> http://www.ctrlaltdel-online.com/comic.php?d=20060218 <19> kuja: I really expected better out of that place. I think it's been useful a total of one time in months. I'm not sure why I'm even still in there. <7> sorry about that :/ <4> caffinated: lol, I know more people now, so I generally get heaps of help. It's all about the connections man! The konnektions! <22> how do I add dates with php? I want to add 2 months to a date value in my database when i click this nifty orange button. Please point me in the direction of date-add-ness! <19> kuja: aparently I'm missing something. all I get out of them is stupidity and arrogance. <4> caffinated: Not much different from #python or ##php, not until you start familiarizing yourself. You know how it works :P ... the only really helpful channels on this network are Linux distro channels <23> how do i get to know the name of the cli script inside the script? if i call $_SERVER['PHP_SELF'] from an include file, i get the name of the include file, but i want the name of the executed script <4> outofjungle: __FILE__ <11> Davey|Work: Damn you have too many connections. and I didn't see a questionmakr in his response in his response or wouldn't have done a thing. <19> kuja: the first time I was in there, I was asking if there was a way in ruby to resolve symlinks to real paths, so that a directory recursion method I was writing could be made to check to see if it was visiting a place it had already been. the response I got from one of the 'experienced' ruby programmers was that I should not bother with it, because it would never happen. <23> kuja: doesn't work <4> outofjungle: Yes it does. <23> kuja: it returns the name of the include and not the name of the executed file <4> caffinated: lol, who was that? The smart*** dagbrown, or rue? <4> outofjungle: You're wrong. <19> kuja: today I got called stupid because someone said that viruses in linux were not possible, and I said that was a false statement. <19> kuja: I can't remember his name offhand, but it was one of the 'important' people <24> Jymmm: LOL yeah that is a total ****y situation <23> kuja: i just checked it. if i include it in the main file, it returns the script name. if i place it in an include, it returns the name of the include <4> caffinated: Hah! Man, some people. I hear ya. There's some people who are generally very helpful for me. rue (occ***ionally), slyphon - dr_bob - dblack <-- Very helpful bunch. <4> caffinated: Target questions at the right time :) <11> strobedream: Hell, I wouldn't have even placed the order at all if it wasn't in stock. eeeesh. <19> kuja: for other problems requiring some thought, people just don't bother to respond. I guess they just can't be bothered. <11> strobedream but at least it's only on backorder till MArch 10. <11> and will autoship then <19> kuja: in any event, I haven't had too many problems getting along without them. <24> Jymmm: LOL depending on what that is that could really screw you <25> when using serialze/unserialze to store information is the resulting string safe for verbatim insertion into a database (mysql in this case)? or will i have to escape things such as ' and \? <23> the $_SERVER['_'] seems to return the executed script filename in PHP5, but nothing seems to be working in PHP4 <4> caffinated: I do my friendly humping, and I get them answers. There's always the ***es and helpful ones, (I'm the *** of ##php).
Return to
#php or Go to some related
logs:
#python WYSIWOD emacs #web xorg i810 Cannot read V_BIOS #css audio player not using X shellbind fedora delete files from dvd Diablo II in non-fullscreen OS X #debian
|
|