@# 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 27 28 29



Comments:

<0> thanks finally a clean answer.
<1> little ; at the end..
<1> after trim.
<2> no im talking about the foreach($key as $value) part
<1> $arrayname as $key => $value
<1> lol
<1> apologies.
<0> foreach(array_keys even.
<2> or foreach($array as &$value) { $value = trim($value); }
<3> Can anybody help me about p***ing var from php to flash?
<0> argh
<1> yup, because its p***ed as reference not value ;)
<3> punkstar: can you tell me how to do it?
<4> CPUnerd: loaded, but no love
<1> you need to ask on a flash channel. You need to basically echo out the value onto a php page in the action script var format. Then you need to grab it through flash. I have done it before but I cant remember how.. it was like years ago.
<3> which channel is flash channel(i have just tried #flash?)



<5> nick: it's #weonlylikeossnotproprietymacromedia
<2> it's probably #adobe now. :P
<6> how can i delete from position x to position z from a string?i can`t find it on php.net
<4> substr_repliace
<7> delete ya note!
<4> did I dupe post?
<7> yes
<7> on mimeinfo
<7> s/info/magic/
<8> HI guys... What's the negative comparsion of the bitwise AND (&)? Like == and <>
<4> Judge--: & ~
<4> foo & ~bar
<8> thanks aidan
<9> rabi: who not ~foo&bar?
<9> -rabi
<4> that's probably better
<9> neither is better, it depends on what you're trying to do ;)
<4> I can't get this damn fileinfo extension working
<4> is it possible to compile it in? I don't see any ./configure entry
<0> well aidan if you get the tgz
<0> you can extract it and try to do
<0> phpize && ./configure --with-php-config=php-config && make clean install
<0> then you will have a nice fileinfo.so in that directory and you put it in your ext dir
<0> but that's funky
<4> I've build the .so and it's in my ext dir, it's being loaded (no errors on apachectl restart), but doesn't appear in php -m
<0> so it's not being loaed
<0> loaded
<10> Is something like this valid? var_dump($_POST["$enddate.bankings"]);
<4> Smegzor: yes, but why the " around the variable?
<0> omg that looks like a mix of smarty and php.
<0> hey storm :)
<10> .. because I don't know what I doing? :)
<11> Yo, CPUnerd
<4> # cat /etc/php.ini | grep fileinfo
<4> extension=fileinfo.so
<4> # php -m | grep fileinfo
<0> where is the fileinfo.so ?
<0> in the good extension dir ?
<0> cat /etc/php.ini | grep extension_dir
<4> # cat /etc/php.ini | grep extension_dir
<4> extension_dir = /usr/local/lib/php/extensions
<0> ok and did you put the fileinfo.so in there ?
<4> that's the mistake
<4> /usr/local vs /usr
<4> STUPID --prefix
<10> Is this the correct way to put a var in a POST name.. <input name="<?php echo $enddate; ?>bankings"
<4> Smegzor: no.
<4> $_POST['enddate']
<10> I need the word bankings in there also
<0> aidan, with this that should work now.
<10> the page has a hundred or so POSTS
<12> why wouldn't it be the correct way?
<0> :o
<4> # php -i | grep php.ini
<4> Configuration File (php.ini) Path => /usr/lib/php.ini
<4> this is also disturbing
<0> hehe
<10> ah. aidan is wrong. Firefox says so :P I think I can get it to work now.
<0> damn pop3
<10> my POST ***ignments are working, I'm just failing to read them at the moment.



<0> who would use that!
<13> how do you define a function in PH>
<4> Smegzor: php.net/getting-started
<13> pHP?
<4> xbmodder_lappy: php.net/getting-started
<10> lol.. getting started
<4> # php -m | grep fileinfo
<4> fileinfo
<4> yay
<10> I started in May or there abouts
<4> Smegzor: if you can't echo a post variable, and you've been doing php for 6 months, you should give up
<10> ha. sorry to disappoint
<10> anyway i'm fixing my POST
<4> CPUnerd: "image/png" yay :)
<0> aidan, worked ? :)
<4> yep
<4> old crappy box, php.ini 's all over the place
<0> nice :))
<0> now you help me :)
<0> how to get only the body in pop3
<10> nah its not working because of another fault in my code. I just spotted it.
<0> I don't want all the Content-Disposition crap !
<0> skanky pop3
<4> ew pop
<0> I want my imap
<4> only the body ... are you grabing the whole mail then parsing or what?
<0> using Net_POP3
<0> so yeah, I get raw headers, body
<0> omg the getBody from netpop3 is ****
<14> Can someone check http://www.netvue.com and see if it works for them?
<15> Mozart - Tahiti etc
<0> yes it does.
<16> Mmmm how do i resolve an article to it's article ID
<16> im stuck
<4> preg_match('#\.virtualexplorer\.com\.au$#', '
<4> preg_match('#\.virtualexplorer\.com\.au$#', 'virtualexplorer.com.au'); why does it return false? what am I missing
<4> d3sol4t3: are you in the wrong channel?
<16> No
<15> d3sol4t3: Or on the wrong meds?
<16> i've made a basic php search script
<4> d3sol4t3: how the HELL do you expect us to help you with the question you just asked?
<16> im explaining
<16> http://www.illworm.com/adm/Search.html
<0> $_GET ?
<0> $_GET['id'] ;)
<16> search for something
<4> d3sol4t3: then do it in ONE LINE
<16> oh
<16> ty CPUnerd
<0> d3sol4t3, in the future ask before going to private.
<4> ah, the \. at the start
<10> one of my POST vars is a currency value when it comes out of the db, but after reading the post, it appears to have been type caste to a string. How can I stop that happening?
<10> they look the same if I var_dump them, but number_format is changing after the POST
<15> You can't - everything comes out as a string. But you should be able to cast it from string...
<4> Smegzor: all data from the database is a string
<4> Smegzor: all data from http is a string too
<4> except xforms
<17> hi all
<17> i really need an help with php/ldap code
<17> i have serious performance problem
<10> so why does number_format behave differently pre-POST vs post-POST with the same value?
<4> number_format deals with integers
<10> maybe but it formats correctly pre-post
<4> what do you mean, prepost?
<4> you mean, when it comes from your database?
<10> my page reads data from a db and sticks it into input boxes (formatted)
<10> yes
<4> var_dump the string, see what you have before and after
<10> I did, its the same
<4> then the output of number_format will be the same, there's no if-buts or maybe. If you think it's different, you're doing something else wrong.
<10> very strange. I'll try to find the bug..
<10> I think I found the problem. This is POST var then db value.. -7,056.36 -7056.36
<10> I am a victim of my own formatting


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
cdega torrent
#perl
#perl
inkscape add fonts
configuring tightvncserver
#python
can't update table in stored function/trigger
#physics
osdev turn off



Home  |  disclaimer  |  contact  |  submit quotes