@# 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



Comments:

<0> sed :-)
<1> im trying to learn how to use pcntl_fork but i seem to fail to get enuff info out of the manual so can someone tell me how pcntl_fork works
<1> Urthogie,$file = explode("\n", $file) unset($file[x]) and rebuild
<2> if you wanna convert bytes to mb by how much do you need to divide it?
<1> 1024
<3> unset function, never heard of it...ill check it out, thanks
<1> olger901, one megabyte is 2^20 bytes
<4> why does this http://rafb.net/paste/results/OWOvyJ30.html give me "Could not add data to the table"
<2> that means for example 100000 / what = mb??
<5> ok, I got it to translate from the command line, but can't make it translate thru apache. should I start the mod_negotiation module?
<2> kb to mb is 1024
<2> but I don't know bytes to mb
<1> (byte/1025)/1024
<6> 1024*1024
<5> olger901: clearly, 1MiB= 1024*1024 B
<4> I know



<4> got it
<3> Glade:how would I do the rebuild part?
<1> a loop writing every line into the file
<2> oh ok 2048 lol
<2> ;P
<2> 1048576
<3> glade:you're good at coding-- very clever solution
<2> Im a fast calulator eh? :p
<1> Urthogie, :)
<7> greetings
<7> quick stupid question :)
<7> what php function can I use to find out the date right now?
<1> :D
<8> FenixRF: um, try date()
<7> it's by not giving a timestamp right?
<7> so date("m") will display 03
<7> well return 03
<8> yeah
<9> Hrm
<9> I'm getting a very *weird* SQL result
<9> I have a column name conflict when joining two tables, and my mysql_fetch_array() has [3] = p.name & [name] = c.name
<10> (just a guess) do an as
<8> Davey: the numeric is giving you one table, and the textual is giving you another?
<10> so p.name as foo
<10> :P
<9> AcidReign, correct
<9> nathe, you'd think, I got an error :/
<8> Davey: weird, but you should be aliasing, you know :-)
<11> hi, anyone from nyc?
<8> Davey: to be certain and avoid such behaviours
<9> eah, but its still weird
<8> ohad: location is irrelevent, this is not a social or "teen chat" channel
<11> AcidReign, :*
<12> configure: error: Cannot find MySQL header files under /usr/local. .. how can i understand where are the headers :)
<6> TheDarkSide: better ask #yourdistro
<6> or install mysql first probably
<6> bbl :
<6> p
<13> If I set $_GLOBALS['blah'] in one part of the code (init), can I later say $blah? How about inside a function? Do I still need to say "global $blah"?
<14> plz, somebody have know of phpcollection (for vim)
<14> ?
<15> So, I'm rebuilding php to include Oracle support, but I also need to make sure I have it configured for mysql support, what is the --with-mysql= command expecting to point at? Header files?
<16> hey all, I'm trying to "pear install soap" but it says there is no stable version available, although "pear list soap" shows one.
<17> anyone know an obvious reason why a file upload would report that it received 0 bytes (***uming it actually received the file correctly)?
<18> Does anyone know of an extension where I can actually name the temporary files that are uploaded and their location?
<19> hi, i'm looking for a javascript / php solution that will allow me the encrypt data on the client side, and decrypt it on the server side
<19> anybody got a pointer ?
<20> You mean rather than using SSL?
<19> yeah
<20> I'm not too familiar with encryption algorithms.
<19> something like meebo.com is doing at their login page
<21> i have a system question about php/apache/mysql. i have a medium loads erver with 512MB of ram but every time i look at to i only have 6MB of ram free. right now it's 20% kernel 20% buffers, and 60% cached. is that normal? becuse the server seams slow doing anything php related
<21> anyone?
<22> hi all.
<22> I realize this is a php only channel but not getting any response with this question. Having a problem with Pear::phpDocumentor running php5 i get "Fatal error: Cannot re-***ign $this in" ParserElements.inc line 238 is there something in the php.ini file that i need to set?
<23> how do i remove line breaks in a string?
<23> i thought i could do $str = str_replace("\n" , "" , $originalString);
<24> heh, I need to find a picture of every country's flag there is.. anyone got an archive? :D
<19> eml: maybe wiki does ?
<24> IceBreak, which wiki?
<23> pedia



<19> pedia?
<22> jasz if windows need "\r\n"
<24> oh, yeah probably
<24> it'll be tough to go through every land tho :D
<19> eml: try looking broader for country flags or something
<24> okay
<24> http://en.wikipedia.org/wiki/List_of_countries how nice
<19> yeah, wiki has lots of lists
<23> crashdummyMCH, ... thanks :)
<24> ye, you gotta love wikipedia
<25> hi. Can I use eval with <? ?> tags ? (obviously not) Otherwise, how can I do such a thing ?
<23> how do i parse xml with php?
<25> jasz : use PEAR
<19> why is PEAR so complex, and not an integral part of php
<19> nobody has a clue about what i've asked for?
<19> php has no normal crypto libs which can talk with js ?
<26> aalex: if you're considering using eval for anything, you're probably doing something very, very wrong.
<26> IceBreak: I don't see what one has to do with the other
<26> IceBreak: PHP does have an ecryption library, look at http://php.net/mcrypt
<25> caffinated: I am trying to write a parser for custom tags (multilingual)
<27> what do you guys use as a naming standard when you name tables/columns?
<19> caffinated: welp, since i wanna p*** encrypted info not via https between js and php
<19> and i was sure somebody did it already
<25> http://pastebin.com/580557
<26> IceBreak: right, but php has nothing to do with javascript. so, while I can point you in the direction of encryption stuff for php, javascript is something you'll have to find help with elsewhere.
<19> i found stuff, but nothing yet that talks the same way between them :(
<28> I want to write a little message system for a site I'm working on. I want to do it in cl***es, so it can be fairly easily adaptable to other sites. Would you guys suggest making 2 cl***es...one "messages" for displaying groups of messages (inbox, sent, etc), and one "message" for handing a single message (displaying it, marking as read, etc)? Or should I put it all in one cl***?
<27> IceBreak: PEAR is not such an integral part of PHP because it is so complex, I think.... but it's very useful, well-implimented and clean if you understand it
<19> ee99ee: if you hosting company has pear installed normally...
<26> aalex: that regex has no hope of working since it's improperly formatted (missing delimiters)
<19> like, i want to use pear in dreamhost, not so easy
<26> aalex: also, you should not be performing localization like that.
<27> IceBreak: if its installed, you can use modules per-site/user, they don't have to be installed globally by any means
<26> aalex: you're using an entirely horrible approach.
<19> yeah, only i couldnt manage easily how to do it in dreamhost
<19> and you need to add to your local .htaccess path changse..
<29> someone here who can advice me an solution with an mysql query ?
<26> ^Willie^: #mysql or #sql is where you should ask
<30> ^Willie^, if it's the query try #sql
<29> ok
<29> mysql is no one who know techincal faq`s atm
<29> ppl who know are afk
<26> ^Willie^: that doesn't mean ask here
<25> caffinated: thank you ;-)
<25> caffinated: its not a software, its a web site
<26> aalex: no trouble .. but please, please, please rethink your approach
<26> aalex: I'm serious when I say what you are doing is not only wrong, it's downright bad.
<25> caffinated: what would you do ? i wont use _() for that !
<29> caffinated i know
<25> forgot the name, you know the gnu thing for i18n
<29> but ppl who use php have to know sql :p
<26> ^Willie^: good, then you can stop asking here.
<29> damn support :(
<26> ^Willie^: persistance will be met with force. please do not push me.
<7> What's an efficient way of checking the headers to see if the person looking at your page is a bot or not?
<29> i don't push any one
<29> just did ask who know technical faqs and no select * from where like ?? kiddy stuff
<26> aalex: what I would do is make seperate includes for each language specification. then in your main code, use constants to access the bits that will go in the site.
<25> not a bad idea
<26> aalex: then all you have to do is include the right specification. what you are doing with eval will lead to more problems later, and possible security holes.
<25> caffinated: I wanted to to only 1 table for both language, but it turns out to ba a pain of if()else()endif()
<25> caffinated: yeah, I might just take the HTML output of it and include it instead for the future versions
<26> aalex: think about it this way: include('french.php') echo SAY_HELLO; <- something like this
<26> then if you change the include, your code stays the same, but what it outputs is different
<26> this is a good way to go about localizing on a per-language basis for common words and phrases in the file. it makes it easy on you because the constant names can be written in whatever your native language is, so you don't have to guess about what it says.
<26> so, in 'french.php' you'd have something like: define('SAY_HELLO', 'bonjour');
<31>
<31> oops, sorry
<32> is there a sane way to eval() but in a completely seperate code context? (new globals, non-conflicting namespace, etc.)
<33> what is this namepsace thing you speak of? this is PHP
<32> yes, and if you try to have two functions foo(), it breaks
<32> i'm talking about an eval()-type thing where you could have a foo() outside, and foo() in the string p***ed into it, and it would work
<33> apparently my attempt at being funny failed miserably
<34> the script does not uthenticate naymore


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#qemu
#php
#debian
rhel3 2.6.15.4 patch
Build of the package nvidia-kernel-source failed! How do you wish to proceed?
pclinuxos dazuko
#suse
#physics
configure screensaver ubuntu
gentoo nl_NL.UTF-8



Home  |  disclaimer  |  contact  |  submit quotes