@# 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 30 31 32 33



Comments:

<0> thank you.
<1> hi is there a function that can transform an integer from 100000000 to 100,000,000?
<2> number_format
<3> http://nl3.php.net/number_format
<3> damn
<3> will: you beat me by .1 sec
<3> :)
<2> heh
<3> 0,1000.000.000 seconds
<3> that is :)
<2> lol
<1> heh, well, thanx ((will && JoshX) || (JoshX && will))
<3> :)
<1> now is there a function that can transform an integer from 100,000,000 to 10xe-18+10% ?
<1> just kidding
<4> haha



<5> hi
<6> what good is mysql if foreign key constraints aren't even available? how is it a relational DBMS?
<4> mogbit, you need a real dbms
<4> like postgresql
<4> :)
<7> mogbit: mysql does have FK constraints...
<5> how can I add a webcam/microphone stream to my website using php?
<8> ...provided you're using innodb
<8> the whole "mysql is not a rdbms" argument is getting a little old though
<4> yeah, you're right
<4> low blow ;(
<4> mysql 5 looks nice
<8> I'll give you that postgres is more mature, and has a better feature set though ;)
<7> actually i've used FK constraints in 4.x too.. :P
<8> yeah, mysql has had it for a while
<7> postgres is big, slow and featureful
<4> i like postgresql's manual, and the use of procedural languages
<8> the thing is, mysql defaults to myisam
<8> actually, the manual is what i hate most about postgresql
<7> caffinated: that depends on your config :)
<4> there's no clutter on the postgresql website
<4> caffinated, really?
<8> niraj: that's true. I suppose I'm thinking of out-of-the-box defaults
<8> m1chael: really. I much prefer mysql's manual layout.
<4> fascinating
<8> to each their own though. you'll find more than a few people here who will side with you in the rdbms argument :)
<9> caffinated: WAZZZAAAAAP
<10> good evening
<8> mind you, i haven't actually written a line of SQL in months now, since activerecord does that for me
<8> kuja: hey man
<6> mehhhh innodb isnt supported in phpmyadmin
<6> niraj
<8> mogbit: phpmyadmin is a waste of time. have a look at mysql query browser
<4> about 6 months ago, i was in here.. and was trying to do something crazy (no idea what it was) .. and someone suggested psql.. i'm happy that i ported everything over
<7> mogbit: real men write their own queries ;)
<9> ActiveRecord == :the_****
<9> caffinated: Whooo, how goes it?
<8> m1chael: yes, it does have some features that do make life easier
<8> kuja: plugging along. on the hosting project, should be done soonish.
<9> caffinated: So I tried WEBRick lately... good god... ./script/server BAM!
<8> kuja: yeah, it's probably the best way to get a test server up and running. no h***le.
<9> Definitely
<9> caffinated: Django did the same stuff too, which was awesome
<11> hi all how can i add php4 modules to apache ?
<11> installing from apt
<9> apt-cache search ^php-
<11> i did apt-get install php4 , but when i going www.index.php the script just dont running
<6> thank you caffinated
<12> erm, any kind soul wanna help me get my head around php5 OO stuff?
<13> you have one object, and another object, and they do stuff
<12> thats a start :P
<14> how do i check if an array key allready exists?
<13> http://us2.php.net/array_key_exists
<12> http://pastebin.com/546894 is what i have so far
<15> I'm using an array with a string key. It was my understanding that I could reference the value of a particular key by using the integer of it's position within the array (as opposed to the actual string), but I can't get this to work. Am I incorrect in this thinking?
<16> I'm writing an application at the moment that will have a pop up menu that is customizable. I'm going to store that in a mysql record such as thing*thingy*something*this*and*that and then explode the field and fit the array in to <option> tags. Is that the best way to do it or is there a tidier/more efficient/lazier way of doing it?
<17> turtlexiv: , not AFAIK
<17> you can always get the array keys
<17> $keys = array_keys($your_array);
<17> then
<12> eatmypiano as is navigation categories?



<12> like Home > Products > Stuff etc?
<16> No, it's a single pop-up menu of job titles.
<17> for ( $i = 0; $i < count($your_array); $i++ ) { // refer to your elements like this $your_array[$keys[$i]]
<17> }
<5> how can I integrate streaming a webcam into a website using PHP?
<15> hmm. kk.
<15> lepine: I don't see how that fixes my current problem. Lemme pastebin this up...
<17> k
<13> Akuma, you'd have to refresh the page if you're using just php
<5> php/java combination
<16> lepine: Thanks, but that wasn't my question. Unless I'm missing your point. I have a list that can change its values. I want to turn value1*value2*value3 in to <option>Value1</option><option>Value2</option><option>value3</option> as efficiently as possible.
<5> not sure what would be the most adequate for constant streamin of video and audio
<17> eatmypiano: i didn't try answering your Q, sorry for the mishap
<17> value1*value2*value3 .. is that an actual string ?
<17> explode ("*", $that_string)
<16> I was going to explode the list to an array and then loop through the array sticking each element inbetween the tags. Fine for 5 items, not so fast for 500. Not that I expect there to be 500. But 100 is possible. I just wanted to check it's the quickest way.
<17> AFAIK it would
<18> any developer friendly shared hosting ?
<15> lepine: http://pastebin.com/546910
<17> Madeye: , if you find anything good, let me know
<19> dreamhost.com ..?
<18> lepine, textdrive is awesome but they do not allow any kind of development :(
<16> Thanks. I was just after second opinions. I find there's lots of PHP that's more efficient than some of the crap I come up with so I've taken to double-checkign my work ;-)
<19> cheap, huge, fast, and you can compile stuff on shell
<17> yeah, i looked into them ... no cron more than once a day ...
<17> i need every 15 minutes MAX
<19> well, you could sort of fake it if your site got enough hits
<17> haha, true indeed ... i guess i could set something up :)
<19> by storing a state within a sql DB that was a singleton across the whole site
<17> most of my cron jobs are php anyway ...
<19> if it's not important that you get it EXACTLY within the 15 mins
<17> but the limited exec time might be a problem (eventually)
<17> yeah, exact timing is not important
<19> or you could set something up that requested your 'kicker.php' script or whatever, on cron from home
<19> what's it for, anyway
<17> hehe right
<17> syncing DB's ...
<17> parsing text into DBs etc ...
<17> mostly mysql stuff
<17> turtlexiv: , i still believe you'll have to go the array_keys way
<15> lepine: but array_keys would just give me the integer of the key. It's unnecessary when I already have an integer to use
<17> no! it would not!
<17> array keys returns an array like this:
<17> array ( [numerical equivalent] => the key of the array your refered )
<15> oh oh
<17> bet it string, or numerical
<15> I see what you're saying
<17> so array_keys would return
<15> right.
<17> 0 => male 12-15
<17> 1 => female 12-15
<17> 2 => male 16-21
<17> ...
<15> aye
<20> hello. I did an upgrade on my lighttpd & php and nothing works. Actually the webserver doesnt understand some build in php functions like, session_start() and preg_replace()
<20> what should I do or where should I start looking? (already googling)
<17> i have no idea ... but perhaps some of those things are specified at compile time
<15> that did it, thanks
<17> and for some reason, you might have skipped them or something
<17> np
<20> pcre isnt supported
<20> I just found a hint on a forum (God bless google! MAKE THEM GIVE US LOW PRICE WIFI)
<20> k
<20> I'll try recompiling
<17> ah, how so?
<17> is that lighthttpd specific ?
<12> Hello.. I am trying to get my head around php5 OOP stuff... i have one simple cl***.. that has a contstuctor to open a connection to a mysql db. I am then trying to reference that in another function in the cl***. and am getting the error : Fatal error: Call to a member function query() - - - Code is http://pastebin.com/546946
<21> OrionX: line 17 change to $this->connection = new ....
<21> line 22 change to 'return TRUE;
<21> line 36 change to $q = $this->connection->query (I think)
<21> also on line 8 add a private $connection;
<21> and in all reality. .your cl*** shuoldnt be 'echoing' things..
<21> it should return them and YOU echo it.
<12> i just echoing.. to see whats going on :)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
clamd telnet 3310 connection refused
#gentoo
#perl
aptitude ubuntu securecrt
#openzaurus
pppoeconfig command not found
not a mounted XFS filesystem
#perl
#web



Home  |  disclaimer  |  contact  |  submit quotes