| |
| |
| |
|
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> hmm... i've got an SVN repository, which can be downloaded by anyone... i need a way to have my files to be able to access my files, while not having the p***word in the repos.. any tips? <1> TML: ok it's updated <2> itrebal: That made no sense <1> thanks mrturtle <0> er... sorry, lemme resay that <0> hmm... i've got an SVN repository, which can be downloaded by anyone... i need a way to have my files to be able to use my p***word while not having the p***word in the repos.. any tips? <3> Thanks lig <0> better? <4> how the hell do i get the contents of a private array in a cl***? <4> whenever i use it in output i just get Array[0] <4> Array[#] <0> i thought about having a file in ~/ with my p***word in it, defining it as a global... and using auto_prepend to add it, but it doesn't seem exactly effective, since i cant put it into the php.ini, nor am i terribly interested in adding it into the config files for all the domains <3> Now I'm beginning to wonder what php version I'm using... My distro's package manager shows I'm using packages named php5-something-5.0.2, but phpMyAdmin's php info says it's 4.3.8 <4> surprisingly it works when i use print_r BUT it adds a '1' to the end <0> cornell_: do phpinfo(); <3> Sorry, real new at this... how can I execute a single php command?
<4> itrebal what can you tell me about arrays in a cl***? why is my array printing as Array[#] instead of what's inside the variable? <5> <? echo phpinfo() ?> <5> cornell_ <0> nomopofomo: i cant help atm <6> nomopofomo: try print_r the array - it will tell you what is inside it <2> sylow: It doesn't look any different than what you posted before. Did it give you a new URL? <4> yeah <4> it actually prints exactly how i want but with an additional '1' at the end <1> TML: oops sorry, that's possible, this page is the new one http://pastebin.com/542611 <4> when i use print_r i mean <6> nomopofomo: I don't understand what you are asking then <3> I'm sorry, bfdhud, I'm trying to do a php file (on another machine) <4> -_- <4> i am trying to make use of my array <4> it is a private variable in a cl*** <2> sylow: I don't think you understand how switch/case works <4> when i use $this->array_i_want_to_print[$var] all it prints is Array[0] <2> sylow: You can't mix datatypes on your case statements willy-nilly that way and expect it to do the right thing. <4> lol omg i can't believe i missed that <4> ok nm <4> fixed <1> TML: ok then.. I'll look for another approach :) <4> i am still getting used to cl***es... i wouldn't have missed it otherwise <4> i didn't use curly braces for interpolation <4> for my array -_- <3> bfdhud, the result seems to be the same page as phpMyAdmin's <4> someone wanna pastebin some of their best commented code? code could be crap, i just want to see some ideas for commenting code and making it a little more readable <3> bfdhud, I've scripts from a book, actually it's cd. I get a syntax error on the "{" after the try. I found a sample try-catch on php.net's php manual, and pasted it into a file and it failed too <3> bfdhud: yup, except the version number <6> nomopofomo: check out phpdoc - I tend to follw that <7> In PHP, how can I backup a MySQL database? Is there any function? <4> phpdoc? <4> is that a site? <8> reikon: think i found it <9> ? <8> before i do Headers i do an include <0> insin: what... is that not a good idea? :P <8> were a enter inserts <2> hej: No, PHP doesn't provide any functions for backing up a mysql database, because MySQL's client API doesn't provide any such function. <3> [20:44][bfdhud(n=bfdhud@12-221-232-191.client.insightBB.com)] did you get the <3> msg i sent you? <3> That? <10> TML !+% <7> Okey, It seems I muse exec mysqldump in PHP? <3> I'm using BitchX, new to it too. Is that like a PM? <10> !+% <11> *main::01 <3> Right, working on it <2> hej: You should call mysqldump from your shell, not from PHP <10> or plagerize phpmyadmin <7> TML, thanks. <7> Jymmm, plagerize? <10> Ya know... phpmyadmin has got to be one of the best apps ever in php history. <12> Jymmm: Haha <0> Jymmm: you know whats worse? phppgadmin <10> kuja Really, I mean that sincerly <3> bfdhud, can you look at http://cornell.homelinux.org/test.html go there and view source. It's a php file with an html extension <12> phpMyAdmin ain't all that bad,but it ain't all that good (IMHO)
<6> commandline++ <8> IT WORKS EUREKA <12> lig++ <0> phppgadmin---------- <8> Now i can sleep <10> kuja for what it does, it aint too shabby at all <12> ((php--)--)-- <0> ovis: dont you hate it when that hapends? you get a script you tink is simple, and you just cant sleep till it works :) <12> :P <2> Jymmm: That's just php-bot helpfully informing you which part of your mathematical expression was invalid <13> hrmm, objects dont' like like $this->deleteMe() do I need to do that from the parent? <10> TML Ah, I was trying to get modulus factoid <10> if not, then write it <2> !+1% <11> 0.01 <8> I spent about 4 hours today on a ENTER <0> ovis: been there <2> !+12.678% <11> 0.12678 <14> how do I extract a zip file using http://pear.php.net/search.php?q=zip on my godaddy shared hosting? <2> Jymmm: And so on <2> Jymmm: Sort of silly, but... <10> TML I mean like !+@ as example <2> Jymmm: You can't use anything in his "builtins" <2> % happens to be in that list <12> I think I was somehow removed from php-bot's ACL... like a long time ago. <3> bfdhud: the same thing as php is http://cornell.homelinux.org/grocerylist/test.php It will display the syntax error <10> !+%% <11> *main::00.01 <10> doh <0> hehe <10> oh well <12> I think TML like saw "kuja" in the ACL and was like, "wtf?" <12> :( <2> kuja: No, you weren't removed from the list. You changed your hostmask. <2> --HOSTS *@kuja.user <12> ! <2> kuja [n=kuja@unaffiliated/kuja] <3> bfdhud: did I lose you? <12> I didn't, Freenode did :P <2> Those clearly don't match <12> TML: Clearly. Is there some sort of authentication I can do? <12> Or can you manually update for me :( <0> how do you access the ACL? <12> about, even <2> itrebal: You don't. <0> TML: thought so <3> No, that one is from the php.net manual. The one from the cd is same directory but file Auth.php <12> TML: Thanks <10> itrebal only tml and tml's bitch can edit the acl <0> Jymmm: i didn't say edit, i ment see whos on it :) <12> TML: By the way, I'm writing a "Ruby and Python, A Newbie's Point of View" article that kind of explains pros and cons of a language from a newbie point of view in the learning process. It's quite detailed and covers many things. I think you might be interested in reading it when I'm done <15> hehe ruby is nice <10> kuja: I'd be interested in destoying it when your done... all copies of it. <12> Jymmm: TRY FOOL! :D <2> kuja: Sure <6> OH - this is SOO cool <2> kuja: I ran into a bunch of CS students at University when going in for an interview to see if I could enroll, and explained monkeypatching to them, and watched their faces fill with horror that a lanugage would allow such atrocities. <0> how do certain extensions do things like tidy, $tidy = new Tidy; $tidy->parsString(); $tidy->cleanRepaire(); echo $tidy; which will display the code? <12> TML: Monkey patching is Ruby's equivalent of opening a cl***, IIRC. But I don't quite remember how. <12> err <12> Python's equivalent of Ruby's* <16> This may seem like a silly question, but in php-cli, how doy ou clear the screen? <10> kuja: Ok, toss this in your browser --> javascript:document.write(unescape(\'\'%3C%69%66%72%61%6D%65%3C%2F%69%66%72%61%6D%65%3E\'\')); <17> sylow, one problem is that your parameters on preg_match are wrong <18> hi.. is there any easy way of only allowing a given number of characters.. so its safe to use the content in as a part of an sql query value? <2> kuja: "monkeypatching" is what Pythonistas call Ruby's silly abilities like adding a method to an instance. <12> Ah, right. It's quite silly, I agree. <12> I don't use it myself, and is 99% of the time utterly pointless. <2> And the other 1% of the time it's just a really bad idea
Return to
#php or Go to some related
logs:
kubuntu keyboard iso-8859-15 xorg.conf ntsc flash bash multiline string #debian gentoo ntpdate no servers can be used #qemu pooru+punda #centos perl threadsafety java runtime envir ubuntu
|
|