| |
| |
| |
|
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
Comments:
<0> DefV: Do You know what pspell is? <1> yes <0> What is pspell? <2> do you know how to spell pspell? <1> set of functions to check spelling of words <1> but I want to use the suggest function of pspell to run against a bunch of files <0> Yes, but it works on dictionaries. It uses the pspell library. <2> can you tell me how to get to Sesame Street? <0> You need that installed, and you need a dictionary. <3> kuja : Knowing that $array[X] only contains one PlayerID <1> so I can tell users: "did you mean ThisFile.doc instead of ThisFile.dot" <0> somePriest: So, why don't you just use a foreach? <1> any other ideas on how to do that without a dictionary? <3> kuja : Because that's inefficient. If the PlayerID I want is in $array[4000], foreach will search through 3999 times. And this I have to do multiple times. I'm doing a query, and getting a list of PlayerIDs to unset() from the array. <3> kuja : Maybe I need to make a custom function I suppose. I know all the PlayerIDs are in order, so I can check in the middle of the array, then keeping splitting it in half till its found. <4> how would you send a message to the system log?
<4> stdout? <0> somePriest: If array_filter() can't do it for you, then you're screwed. <0> jaredx: php.net/syslog <3> kuja : array_filter would still implement with foreach right? <0> Uh no. <0> somePriest: php.net/array-filter :) <4> kuja: tnx <3> kuja : "iterates over each value" that sounds like foreach to me. <5> hi all. does anyone recommend a site/ebook with let's say the 20% php you'll use 80% of the time? <0> somePriest: yes well, it's written in C. You don't think C has a way of iterating an array? <6> dipnlik. Yes. http://www.php.net/manual/en/ <0> That's why I said, if array_filter() (which is written in C, so it can't really be faster) is not good for you, then, well.... you're screwed. <6> it could be faster if it were written in ***embler <6> I'm going to build a web site in ***embly code <6> that sounds like fun <7> ^Migs^: Thats hardly hard core, write it in binary! <6> yeah, even better <0> asm can **** my left nut <0> :P <3> kuja : If I know the possible PlayerIDs start at 1, and say there are 20,000 playerIDs (and the array has 10,000 entries), and I know they are sorted, why would I want to check in the first element to see if its PlayerID '18000', then check to see if the second is 18000, etc? Would I not be better off checking element 5,000 first, then jumping to either index 2500 or 7500 if 5000 didn't match? <0> somePriest: Then do the math? <0> Are you asking me to do the math for you? <8> somePriest yes its called binary search <3> kuja - I was just wondering if there is a built in function that would search this way on teh second index (knowing the first index only ever contains one entry) <0> Not that I know of. <3> kuja - Ok, that is all I was asking. Thank you. <9> hi.. i need a good advice, i have this problem: a script which has to insert data i 2 different databases.. (mysql) cant find out if i shall make 2 database connections in one script.. or make 2 scripts, and let the first call the other one? i know it will end out with the same result.. i just want it to be PERFECT!! <3> hollo : Making two connections just seems to make sense. <10> what is it that makes a php suddenly ask to open in the text editor instead of displaying in the browser? <9> somePriest: okai.. i just dont want to make anything that just works.. it has to be correct and fast <3> hollo : If you asked fifty people what "correct" was, you'd get 50 answers. <11> ******in5: content type <3> hollo : You could always not hard-code the DB to use. Make it a paramater to your cl*** or function handling the insert <10> well, it's one I'm working on and it's fine one second and then I mod it slightly, is displays db records and then it doesn't display in browser. <12> hi... I'm trying to connect in a local MDB-Access file with odbc_connect, and it returns: [unixODBC][Driver Manager]Data source name not found, and no default driver specified. <3> hollo : $sql = "INSERT INTO $someDB.$someTable(field1, field2) VALUES ($value1, $value2)"; <9> uhmm.. yeah that was a great idea, i will try to look at it <13> is there a PHP utility that will allow users to download multiple mp3 files to a user desktop ? <9> somePriest: then i have to look at database rights.. but the last thing seems to be the easiest. <12> $odbc = odbc_connect ( "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=fdb.mdb", "admin", "1234a") or die("Errors: ".odbc_errormsg()); <6> a "PHP utility"? <6> you mean as part of the PHP core? <13> PHP software <13> and/or PHP Core <12> I'm using linux (ubuntu) with php5 <14> can someone point me to a tutorial on parsing XML? <12> how to use PEAR::DB to connect to a mdb? without a System DSN <14> backz: mdb? <6> XML is buttloads of fun to parse <12> b1n0ry, mdb, ms access database file <14> ^Migs^ extensive work involved? there aren't some previous routines? <14> backz: you need to use PEAR::DB's ODBC capability <14> backz: you may have to create a DSN <12> b1n0ry, I'm using... but I'm using linux, and there's no method to create a System DSN <6> there are routines. It's still a lot of work. <6> more than it should be <6> look at what's in the basic PHP functions: http://www.php.net/manual/en/ref.xml.php <14> backz: linux is not the platform to be connecting to microsoft access. mssql with the proper drivers because a mssql server can answer socket connections. access does not. access is a file-based db and thus would require a native os. <15> Question 1: If I'm implementing a list of keywords or categories that is going to be stored in a field in a MySQL database and grows over time, It would be best to store them as a tab-separated list in a TEXT-family field, correct? (I won't know what they are at creation time, so it's a fair ***umption that a SET isn't acceptable) <15> I'm asking here because "best" is also defined by what PHP can do easily. <16> I have most mssql functionality working through php5 .... but it doesnt let me use stored procedures... I've googled it, and everything I found says that it should work with php4.1 and later... I need access to the functions, "mssql_init(), mssql_bind(), and mssql_execute()" ... what else do I need to do to get this functionality?
<14> backz: check this out, it might help: http://www.unixodbc.org/ <12> b1n0ry, b1n0ry, ****... I've to install apache/php on my win box to do it <12> ops <8> deitarion no use a separate table <12> b1n0ry, I saw it, but MS Access Drivers is trial software, or not? <14> backz: yeah, it's not free (as in beer) <17> deitarion: why tab separated? and also mysql fulltext may help a lot <16> backz: i recommend switching from msaccess to sqlite, if possible... (just a suggestion -- not the answer to your question at all) <14> typically mixing ms db platforms and linux is iffy at best. <15> infralite: Because the keywords can contain any easily typed character and there will be no loss of functionality if tabs are transparently converted to spaces. <12> mkrufky, the only thing I need is insert dada on this mdb... this system isn't for me... it is done! <15> archivist: o_O? For an entry similar to the freeform keyword field in del.icio.us? <16> b1n0ry: i cant argue with you there..... but in the case of a transitioning business (m$ -> linux), most of us dont have a choice <15> archivist: Though that does lead to my second question. How exactly should I implement a relational one-to-many link? (eg. having an "Authors" (plural) list where each author has a record) <14> backz: and the -big- key is the fact that at least an MSSQL server can respond to remote systems. so it's talking to the network. MSAccess on the other hand uses MS Jet which is purely file-based. Thus, it's just a file. It's not a service, not a responder, not a listener, just a plain old file. <6> http://www.live.com/ <6> Windows is offering a new search engine to rival Google <6> er, Microsoft <6> I really can't see what's innovative about it <12> b1n0ry, I think DSN would be used remotely. <8> deitarion time to read the mysql tutorial <14> isn't that the same MSN search that they said was going to rival google 2 years ago? <16> (better late than never) <16> lol <15> archivist: That stuff is mentioned in there? I guess I should read it then. To be honest, I was planning to read it AFTER laying out my tables. (which, in retrospect, is a rather dumb idea) <8> exactly <6> I typed "stuff" in the search box, and it's taking an extremely long time <8> m$ is never "innovative" <17> deitarion: but a keyword surely can't contain a semicolon for example? <17> archivist: i'd prefer "adaptive", to be polite about it :P <18> Is gzip the only compression format that php can write to file? <15> infralite: I wouldn't put it past them. One of the "keyword" fields is a list of series names. The code in question is for a specialized CMS for fanfiction reviews. (because I got tired of the linear format of a blog) <17> deitarion: heh <17> deitarion: keep mysql fulltext in mind though <15> infralite: Got a URL or should I just google it? <17> deitarion: nah, not off the top of my head <19> hello, i have some successive pages with forms, and i do the error checking on the form by redirecting to the same page (and then, if there are no error, redirect to the next page). How do i skip the error checking though, the first time i visit a page ? <19> i know i could do it easily with a session boolean, but i prefer only to use the GET method <19> anyone has a smart solution? <15> Oh, and what version of MySQL is needed for FULLTEXT? My webhost is running 4.0.24 according to --version <14> calcifier: put a hidden field in the form. if the field hasn't been posted, don't do the error checking. <14> CalcMan <14> Calcifer <14> crap, i'll get it right one of these times <20> right... code you a backdoor, in effect <19> i did that, but it remember that field when i get to the next page <19> (i send all GET data from one form to the next) <17> deitarion: not real sure <14> Calcifer or, just do something like if($_SERVER['REQUEST_METHOD'] == 'POST') { ... do validation ... } <6> that's a MySQL question, deitarion. We don't discuss MySQL here in ##php <17> deitarion: should say in the manual <17> ^Migs^: forgive him, itstarted out as a php one <17> * it started <15> Yeah, I'm in the manual but it doesn't seem to have the "This function appeared in version..." notes like the PHP manual does. <6> try #mysql <17> deitarion: give it a go then <15> Yeah, I suppose I'll have to. <21> How do you declare a cl*** variable that all members of the cl*** share? <19> but i dont have POST, i only have GET. I used POST before, but i want to get rid of that because it doesnt automatically remember the values when users use the back button (the browser one) <15> Ahh, there we are. They split the manual into "old, 5.0, and 5.1". Now that I'm in the "old" manual, it's got those messages. The feature was added in MySQL 3.x so I'm fine. <14> Calcifer: ok, then use the hidden field method and before you redirect the user to the next page, parse the hidden variable out of the URL. or just use a different hidden variable name for the next form. <19> okidoki, will do <14> and, fyi, my browser remembers posted values just fine. just not p***word fields. <19> also when u click 'back'? <19> cause mine doesnt <14> yep <22> where can i find out about smart quoting? <19> hmmm <19> well mine remembers the previous page, but not the values of the page before that <19> i guess the problem isnt with the browser :| <14> lol, i looked at that live.com. that's a really crappy interface. <6> yeah <6> when you search for images, it just shows one at a time <6> Microsoft is sure taking Google by storm
Return to
#php or Go to some related
logs:
apt-get dependtry process_queue SIOCSIFNETMASK invalid argument #perl #linux increase upload file size htaccess example mod_perl smart::comments #lisp liblame suse WHERE NOT EXISTS mysql 4 #linux
|
|