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



Comments:

<0> well, duh
<0> the engine has to know to adjust the timing and mixture
<0> flex-fuel
<1> I'm stuck in a rut.. I need a conditional or loop that compares a set quantity with an array containg prices for multiple quantities
<0> purefusion: wha have you tried?
<2> ||cw: yes but they have been running ethanol mixes in the midwest since the 80s.. before these new flex fuel cars
<3> Anyone familar with setDBConnParms();? I can't find any information on it.
<4> purefusion: http://php.net/in_array or http://php.net/array_intersect
<1> well, essentially, the quantity in the array is going to be a pricing threshold
<5> then...
<0> winmutt: newer cars handle E10 much better due to electronic ignotion and timing and fuel injection
<5> date("\\1", $row["whatever_time"])
<1> so for instance, check whether 1568 is above 1000 but below 2000
<0> some even do better on E10 and plain petrol
<5> returns 1
<5> how to solve it?



<2> ||cw: id imagine the higher compression engines would
<4> dlon9: date is not a PCRE function. What are you doing? You're not making sense at all...
<0> purefusion: dead simple in SQL, if ther data is commong from there
<5> $each_sub_forum = preg_replace("/\\\$sub_forum_last_post_time\\[(.*?)\\]\\\$/s", date("\\1", $row_last_post['p_time']), $each_sub_forum);
<1> ||cw, yes, data will be from MYSQL DB
<5> i'm making a whatever parser
<5> seems boring lol
<0> purefusion: including the pricing structure array?
<1> yes
<1> essentially I have a pricing table that will contain pricing for certain products at mutliple thresholds, make sense?
<4> date("\\1", ...) is just going to return \\1, so you might as well not call date at all.
<6> purefusion use BETWEEN
<0> purefusion: a bewteen, or a case, depens on how it's stored. #sql can help more if you want to persue that
<1> ah, ok
<1> I'll check into it, thx!
<5> oh well...
<0> dlon9: the date() function is going to be exec'd first, order of precedence
<5> oh :p
<5> thx then
<0> dlon9: see preg_callback
<0> er, preg_replace_callback
<3> Anyone familar with setDBConnParms();? I can't find any information on it.
<7> Is there something like is_utf8 ?
<5> oh thx :)
<4> NickJane: How about a pointer to what software you are using, as it's not even listed at http://php.net which makes me wonder if you're trying to use an undocumented internal function, which makes me think maybe you shouldn't...
<1> anyone know how to navigate the mysql site?
<6> use hyperlinks
<1> not finding that BETWEEN function anywhere
<1> there's no search feature either
<6> go to developers
<1> I'm there
<4> purefusion: A) It's not a function, it's part of the syntax. B) there is a search function. I use it a lot.
<7> purefusion, there's a search feature on their site but it ****S use google like this: between site:mysql.com
<8> go to developers, the manual, get the index page for it and hit ctrl + f
<1> Serinity, thx
<7> yw
<4> purefusion: Yeah, you DO need to drill down into the manual and version before using search engine, or it ****s.
<1> ah
<1> why can't it be simple, like php's??
<1> lol
<4> purefusion: Because they're DB geeks, not PHP geeks :-)
<1> lol, i see
<1> you'd think they'd be one in the same ;)
<0> purefusion: between is part of SQL
<1> what chapter might this be located in?
<7> purefusion, i bet with google you find it right away
<1> serinity, nope, just descriptions using the word between in normal english
<7> using site:mysql.com ?
<1> yep
<9> hello everyone
<7> hum
<7> allright
<1> oh well
<7> sorry then, for other keywords it works
<4> purefusion: http://dev.mysql.com/doc/refman/4.1/en/comparison-operators.html
<9> anyone know of a php/mysql script for comparing mysql tables and syncing them?
<4> MACscr: No, but MySQL replication is probably what you SHOULD be using in the first place...
<10> Hello.. is there a limit on the number of records a "SELECT * FROM x" will bring back. I have about 600 records, and only get the first 500.
<10> I am using php5.1 and mysql btw :)
<4> Geoff_C: There is no limit. You have no WHERE clause at all? What does SELECT count(*) FROM x say?
<10> no where and no limit clause



<9> Richardlynch: I am just wanting to use it to look over clients records before i update/sync it in between my accounting db and crm db
<4> MACscr: And what portions of the 2 dbs should match? Name? [shudder]
<1> richardlynch: thank you! :)
<4> Geoff_C: SELECT count(*) FROM x
<9> Richardlynch: I would need to manually look over the differences, so it wouldnt be anything that was automated. But i only want to live records that have changed
<9> since the last sync
<4> MACscr: I think you're going to have to write it yourself, as it does not sound like something you'll find to fit your needs off the shelf... Least, not to me.
<11> Is there a binary format I can store data in on the HD? Currenty I use serialize... but I can imagine that loading that data takes parsing time... although fast ofcourse I can imagine it still takes parsing time.
<12> if ((isset($_GET['submit'])) && empty($_GET['email'])) { <--- this doesnt seem to be going through on .php?email=&submit=Submit&remove=true ... anyone know why?
<4> ries: I don't think there is any kind of binary dump/load for PHP data.
<1> I don't think the BETWEEN feature is for me after all
<4> Xsploit: It's possible php.ini has different arg_separator character than &... That's ONE rational explanation.
<11> richardlynch: I thought so to... would be cool to have though....
<12> richardlynch no its not that
<4> ries: Write it and submit a patch. :-)
<9> Richardlynch: i was figuring so, but was hoping something existed. i had found a sourceforge project that was supposed to do exactly what i wanted. but their cvs was empty and no published files =(
<4> Xsploit: How about showing us a working URL, and the PHP source in http://pastebin.com
<13> are you dumping binary data?
<12> nah the code is ****ing aweful, im trying to edit someone elses code
<14> Xsploit, you might try ($_GET['email'] == null), or ($_GET['email'] == '') or something different to see what happens
<15> ries: serialize outputs something which isn't exactly text, it's a representation which is not terribly human-readable
<12> mmkay ill try
<13> ries: are you dumping binary data?
<16> ||cw: hmm, its curious, an "echo 'x\n';" will fix the problem... perhaps its a hardware-problem... i will check it..
<1> Does PHP have a between function?
<12> it isnt being run because of a previous if
<6> purefusion yes
<1> or, could I use something like 25 > x > 2
<4> purefusion: if (3 <= $x and $x <= 5)
<1> that works too
<6> or write your own between
<17> hello\
<11> m0dman: I want to dump a object.... MarkR42: still it needs to convert data...
<1> I don't think 25 > x > 2 would work, would it?
<13> use wddx
<4> purefusion: Try it and find out.
<15> ries: PHP's serialize format is as good as a binary format for most purposes. I don't think it's very slow, but it depends.
<15> Of course numbers and stuff get converted to ascii, but that's not too bad
<1> wait.. I doubt it would...
<14> purefusion: yeah, it would probably try to compare a bool on the 2nd part
<1> I should just go with what I know works already
<1> such as richard's option
<1> with the 'and'
<11> MarkR42: I understand... still it takes 800us to load a object from HD... I wanted to optimize that
<17> please, could someone say me what's the command to catch the url the user wrote before being automaticaly redirected by a proxy??
<1> I'll think it over during lunch.. my brain needs some rest
<17> Please, could someone say me what's the command to catch the url the user wrote before being automaticaly redirected by a proxy??
<18> hi, I am looking for a document management system(preferably a php project) that users can upload and manage their files(give and remove access to other users) on the web server. thanks
<11> MarkR42: can I create an object using new in a shared memory block?
<0> MrKeuner: try freshmeat
<4> karlisson: If it's not in phpinfo() it probably isn't provided by Apache, and you would have to patch Apache to get it.
<15> ries: I don't think you can share a reference to an object in PHP, as its architecture doesn't support that sort of thing. You can use shared memory by various means, so you can serialise something into / out of shared memory, but it may be a bit of a locking nightmare
<4> ries: I do not think so.
<0> ries: I don't think you can store objects directly in shm
<15> I don't know how you're measuring this 800 microseconds, but I ***ume you're repeatign the operation a lot to take the avg
<15> Also, my pages usually take at least 16ms to run on this machine, but then it's not very fast. So 800us doesn't sound too bad
<19> you could store objects in shared memory, but they would have to be serialized. you couldn't use the object without unserialization, and the cl*** definition.
<4> MarkR42: So you'll save the hard drive hit if you use shm with serialize/unserialize. You can be damn sure the HD hit is WAY more than parsing hit.
<11> MarkR42: richardlynch ||cw thanks for the answers.. I thought so already... I am optimizing my code here and there ... would be a nice datatype tought... Something togteher with STATIC and ***ign a memory type.... or is that to mych C ish.... :)
<4> ries: There ARE people making "Frameworks" for PHP that do this sort of thing... Not sure any are released/stable yet... Zend is making one. You can search PHP-General for threads/posts/promises/vaporware.
<20> Anyone know of any hosting providers that are PHP/MySQL-capable that you'd recommend?
<21> Elazar
<22> quick one, not completely php, but hey: i am trying to stream a video file through a php script, what headers do i need?
<23> www.remcom.net
<22> somehow content-type and content-lenght ain`t enough for gxine/mplayer
<20> DanMan01001/hack_swor: Yes?
<23> www.remcom.net <--
<24> hello there, i hope to find an help here...
<24> i would like to read an email and forward it
<13> You never here much about SDO for PHP, but IBM apparently finished it
<24> how can i do that?
<25> hi guys, can anyone help me: i have two arrays, i want to grab the keys from array1 and put them as objects in array2, anyone know how i can grab the keys?
<26> GaMeZ,
<27> hi TheDieform :)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
#lisp
net.eth0 symlinked net.lo
#css
#linux
mysql_safe hang
#web
#web
#web
color depth ubuntu



Home  |  disclaimer  |  contact  |  submit quotes