@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> kuja that randomly picka a file?
<0> picks not picka
<1> No
<1> It outputs a random element from the array.
<0> ahh nice
<2> what happens to my data if I change the datatype of a column from varchar to tinytex?
<1> er4z0r: #mysql
<0> kuja thanks that saed me a lot of figuring out
<1> You're welcome.
<3> ok i am having no luck executing the contants of a variable
<3> putenv and exec dont seem to fit the bill
<3> or i am not employing them right
<3> probably the latter
<1> Constant?
<4> I'm trying to match whole words with strpos(). I thought just doing $search = " $search "; would do the job but it isn't. Why doesn't this work? Also, what's the solution.
<1> What constant?



<3> contents sorry
<3> the var contains a variable ***ignment, all ready to go, just need to execute it.
<5> hi all
<5> what would you use to explode a lines of string to array of strings? i'd use $lines = explode("\n", $text);
<5> any suggestions?
<6> hmmm, the page still doesn't react to anything i p*** as part of the URL: http://pastebin.com/581998
<7> Elazar: i don't understand it completely, but it works perfect! thanks a lot...
<8> Yay.
<8> I just completed my change from cookies to session logins. :D
<9> alainlucas: array_filter() takes an array as its first argument and the name of a callback function as its second argument. The callback function has to return a value that evaluates to either true or false. array_filter() uses the return value of that callback function to filter out entries in the array. That is, if you p*** a value to that callback function and it returns false, it won't be in the array returned by array_filter(). Follow?
<9> altoid: Is this page available at some public location where we can see the actual output?
<6> yeah, lemme upload it
<7> Elazar: ok I see
<9> SHaWF: Why would you want to use anything else?
<10> lo lo :)
<6> Elazar: most recent code: http://pastebin.com/581998 * actual page: http://hogwarts.lifeafterking.org/~altoid
<10> I'm trying to use PEAR DB with Postgres under ubuntu.. I've installed php5-pgsql and pear but I'm still getting "DB Error: extension not found"
<10> I can see /usr/share/php/DB/pgsql.php is there
<9> altoid: It looks like you're expecting register_globals to be on?
<11> Nermal: Make sure php5-pgsql added a line to the correct php.ini to load pgsql.so
<12> I just posted some code that I am needing ***istance with. I have this code trying to return a value, but the best that I can tell, I am not getting the value p***ed back. Is there something wrong with the syntax or something. The url is http://pastebin.ca/44345
<6> Elazar: I'm not sure, I'm reading up on it right now.
<13> hey guys quick question, how do you truncate a float to an integer?
<14> x12-fU: $int = (int)$float;
<13> ah thanks :)
<10> TML: extension=pgsql.so is in /etc/php5/apache2/php.ini and uncommented :|
<15> $oneDayAgo = time() - (1 * 24 * 60 * 60); ... if thats 24 hours ago from the current time, how would I change that to be 6 hours?
<5> Elazar: just asked. it is possible that you may know better way.
<14> Super-Fly: math.
<8> Super-Fly, what's the the 1*24? lol
<15> I dunno, looking at someones code
<16> $sixHoursAgo = time() - (1 * 6 * 60 * 60)
<15> =\
<15> oh
<15> makes sense
<10> or just 6 * 3600
<5> what IDE are you using? i am using notepad++. can you suggest me IDE that supports auto-complete and GNU.
<8> I loath doing it.
<5> $sixHoursAgo = strtotime("6 hours ago");
<8> SHaWF, notepad++?
<14> calculating time like that is stupidly simple. if you can't do that, then you need to brush up on your basic math skills.
<17> SHaWF phpDesigner
<10> SHaWF: yeah.. that would work ;)
<5> i prefer strings over numbers
<10> yah
<10> makes code a lot more readable
<12> Did anyone get an opportunity to look at my previous question?
<14> gabrielone: there isn't enough information there to determine what your problem is. my guess is that some error in your try() statement, which is likely generated by one of the cl***es we can't see, is causing it to fail.
<8> lol notepad.org
<5> gabrielone: does it authenticate?
<4> How long should I wait before asking a question again? :)
<10> TML: fixed it.. I was being stupid :|
<10> <- o:|
<7> is there a command to remove all the keys for which the value is null in an array ?
<5> spyro_boy: http://notepad-plus.sourceforge.net/uk/site.htm
<14> gabrielone: what i would do, is before the return, add: die($level); and see what the method is returning
<8> SHaWF, yeah, I'm there now.
<12> caffinated: I am sorry, I did not make myself clear enough. The try statement is successful with the $level = removed from the line and no return statement, but I am needing to get the login id that is saved in the cookie.
<4> I'm trying to match whole words with strpos(). I thought just doing $search = " $search "; would do the job but it isn't. Why doesn't this work? Also, what's the solution.



<14> gabrielone: which is generated by a cl*** that we can't see.
<8> SHaWF, oh. I remember this..
<9> cynic: Depends on your string. Words could also become at the beginning or end (and hence wouldn't have a preceding or trailing space respectively) or could be followed by a period or comma.
<5> that program is great. very lightweight. nice syntax highligth. but no auto complete
<12> caffinated: I just added to the post the validate() section of the cl***
<4> Elazar: I know the word has a space on either side of it.
<9> cynic: Then there's something else wrong with your code.
<4> Dang.
<14> gabrielone: that doesn't help.
<8> SHaWF, I think I'm going to get notepad++ just for it's ascii compatibilities.
<9> cynic: strpos($haystack, $needle) ... $needle in this case being " $search " ... I'd suggest doing var_dump() on your $haystack and $needle variables to make sure they are what you think they are.
<8> ascii art*
<18> how do you remove unempty directories in linux?
<12> caffinated: Okay... Let me figure out what is wrong exactly so I do not have to post 5 pages of code....
<12> caffinated: Thanks for the suggestions though
<5> spyro_boy: but it handles unicode, ansi, unicode without bom files great
<8> Scarlight, rm -r dir
<14> gabrielone: you need to start adding some debug lines to figure out what is not getting set where
<5> spyro_boy: programmer of notepad++ is just crazy and good man
<8> Scarlight, replace dir with the dir name.
<14> start by making sure that $cookie->validate() returns something, and work backwards from there.,
<8> SHaWF, hah yeah.
<8> SHaWF, http://www.flos-freeware.ch/notepad2.html
<8> SHaWF, I use that.
<8> SHaWF, it has JUST what I need.
<8> SHaWF, not too much and not too little. I would have used notepad++ if I was going to use all it's options all the time, but I'm probably not.
<5> spyro_boy: i am using notepad++ all time. with total commander
<18> thanks spyro_boy
<8> Scarlight, np.
<8> SHaWF, hah. me too!
<5> spyro_boy: i am doing php development with notepad++
<8> :D
<19> hey guys, what does a .= mean ?
<8> SHaWF, er, what a coincidence. :D
<14> minDscrm: append and ***ign
<8> minDscrm, adds to the var.
<5> spyro_boy: :) and only it does not have auto complete
<19> caff, nice ... spyro_boy thanks
<8> caffinated <- what he said.
<19> spryo :)
<19> what does : do?
<8> :)
<8> caffinated, your turn, again.
<8> lol
<18> spyro_boy, it prompts before deleting each file. why?
<14> minDscrm: depends on context. you likely mean :: which is used to call methods on cl***es.
<5> spyro_boy: do you have java xp?
<8> SHaWF, auto complete is nice, but notepad2 doesn't have it.
<5> spyro_boy: same for notepad++
<8> Scarlight, because it's a security reason.
<19> caffinated - hm.. it looks like it might be an 'or' --
<14> minDscrm: in the case of a ternary, it would seperate the true clause from the false clause
<8> Scarlight, if you want to get p***ed that, use rm -rf dir
<9> minDscrm: .= is specifically for strings, BTW.
<14> minDscrm: : is not 'or
<19> Elazar, okay thank you -- is there reference to this on php.net?
<18> thanks
<8> Scarlight, -r is recursive and -f is force
<9> minDscrm: http://www.php.net/manual/en/language.operators.php
<9> minDscrm: .= is under String Operators.
<8> SHaWF, ahh I see. What's java XP?
<19> is there also a reference to the : on php.net ?
<5> spyro_boy: experience :)
<19> aah wonderful
<19> thanks Elazar :)
<9> minDscrm: I think you're referring to the ternary operator.
<8> SHaWF, it's for java programming?
<9> minDscrm: $boolean_condition ? $value_if_true : $value_if_false
<19> ah yes.. in the article i'm reading it mentions a ternary operator
<5> spyro_boy: are you doing java programming i meant :-\
<19> rad thanks elaz perfect explanation
<8> SHaWF, nope. lol
<5> spyro_boy: if you are going to do. idea is great editor.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

The debootstrap program exited with an error (return value 139)
#fluxbox
osdev stack
PrintScr IRQ
monodevelop defunct
ssh sudo unknown id
Intel Corporation 82801G snd-intel
#perl
pornholi
manually compile vlc for dapper wmv



Home  |  disclaimer  |  contact  |  submit quotes