| |
| |
| |
|
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> I got it to work <1> good :) <0> ;) <2> okay i included pear location in include_path and same error again <2> damnit <1> restart apache! :) btw, what error?! <2> i did.. <2> PHP Fatal error: Cl*** 'Net_GeoIP' not found <3> maybe you have to like <3> REQUIRE THE DAMNED FILE THEN <1> heh <1> yeah, seems like you would have a file not found error :) <4> how do you set the order of the entries on a page read from a db? I don't want to order them by date! <4> does anyone know a tutorial for writing a cms? <1> bigstumpi: in your sql, use ORDER BY <4> yes but if I order them by continous int numbers I can't insert content later
<0> Another question: In zend how do I get rid of the wierd square cursor back to normal? I got this one by accident. <1> we don't support this "zend" you speak of <5> bigstumpi: you mean you don't have a sort_order field? <0> fred87 <6> Hotwir3d it Ins <7> colder: my patch works *hoo rah* <0> You there <0> Cheers <6> hit* <0> nvm fred87 <8> Anybody here have any experience with pdo(sqlite:db)? <4> CryWolf: no I want to know how you would design this sort_field? 1,2,3,4... or 10,20,30,40 ? <5> bigstumpi: with numbers. I would put numbers in a sort_order field. <9> need one script for read imap mail... know ? <4> yeah. but if the numbers are 1,2,3 and I want to add a record after the first, do I have to push 2,3 to 3,4? <5> bigstumpi: apply logic to the problem, and tell me what you think. <4> CryWolf: is there no better solution? with less database access? how does a cms manage this? <5> the better solution is don't try to write your own cms if you don't know what you're doing. <4> CryWolf: thanks! ;) <10> hiya gurus. could someone give me a hand with writing a preg_match ? I'm wanting to get the contents of a $string up to the first whitespace. So something like: Foo this is my foo. I could preg_match and retrieve just: Foo in a $variable <4> CryWolf: I could select two records and halve the difference. Good? <11> Can anyone help me out with why mod_php isnt' compiling with pdflib support when I have pdflib installed and have tried using both the 'pdf' and 'pdflib' use flags? <5> bigstumpi: what would that do? <12> kyndig: trim($string); $words = split(" ", $string); echo $words[0]; ??? <0> Can I use foreach() to echo all the $swords[0] possibilities <10> theotherlight : *bonks head* simple ..yet elegant, thanks (always helps to get an outside look) <4> CryWolf: the new record would have the sort_number 1.5 if it is inserted between 1 and 2. <13> anybody knows of a working php5 accelerator? <0> Like $swords[0 and 1 and 2?] <13> it seems most only work with php4 <12> kyndig: preg would be a cleaner option, but this way you would have access to any word in the $string a lot more simply <10> Flawless : I use Zend Optimizer for php5 <13> kyndig: isn't that $$$? <10> Flawless : not the free one <1> _3DSHROOM: maybe just install it as shared, very easy <13> kyndig: oh <5> bigstumpi: that sounds horrible. <13> kyndig: is it good? :) <10> Flawless : not as good as turcke..but decent (and only thing available anycase)..works good with mod_deflate <4> CryWolf: You would push all entries? <1> Hotwir3d: would php.net/foreach indicate that? <13> kyndig: I can't get turckmm to compile for 5.1 <13> kyndig: or, I think for 5.x at all <10> Flawless : that's because it won't work with 5.x (which is why I'm using Zend..its the only optimizer available for php5) <13> kyndig: if you're right, you just saved me a fair bit of extra googling :) <5> bigstumpi: yes. use integers, not floats, for your sort order. <13> kyndig: damnit, why do I have to register with a 20+ fields form just to download a file? :( <10> Flawless : ^--based of my own searches/questions/googling about 2 months ago. dunno if anything has been published since that time <13> kyndig: I've read that the eAccelerator folks are working on it <13> kyndig: and that was from 2006-01-xx, so it's pretty recent <10> Flawless : vaporware till shown otherwise <13> kyndig: most other applications seem to be stuck in 2003 or 2004 <5> bigstumpi: your method seems far more complicated than it needs to be, since you have to find the record equal or less than the desired sort record, the next record which will effectively have a random sort order, get the sort orders, calculate the difference, etc. <5> bigstumpi: if you want to find the record immediately above 2, is it 2.5? 2.25? 2.125? 2.0625? <4> CryWolf: right thats stuff <13> kyndig: I'm downloading it now - how much faster do things get, in your experience? <0> Hmm <4> CryWolf: thats the reason why I asked <5> bigstumpi: if you think it through, though, you don't need to ask. <10> Flawless : works fine on a few production sites - no complaints and heavy php usage <13> kyndig: ok
<4> CryWolf: jupp. <13> kyndig: but does it mostly help no parallel workloads, or also on serialized throughputs? <13> kyndig: I <13> kyndig: I'm asking, of course, because I have a single slow page :) <13> kyndig: I've just verified that it is installed. It made _no_ difference whatsoever on serialized output <13> kyndig: the timings are exactly the same <0> Okay <0> How could I use PHP to create an "object" <0> Like a player <1> you crazy! <0> Then make them "own" another object <5> Hotwir3d: php.net/oop <0> I know what Object Orientated Programming is :) I use cl***es in PHP. I looked at that page but I'm confused <1> heh <5> Hotwir3d: sorry, your question implied you'd never used OOP before <0> Whoops <0> C++ even <0> I use cl***es in C++ <0> :s <5> Hotwir3d: excellent. now read php.net/oop and see how to use them in PHP <0> I read it before <0> I don't understand <0> Basically, how can I implement an inventory into my game? <1> so you want someone in #php to explain how to do OOP programming in PHP? :) <0> Yeah! :D <5> Hotwir3d: no. <1> consider google <14> Hey, when user submits a form are ALL fields set while some are empty? Does this include checkboxes/radio buttons? What about fields marked as visible = false ? <0> I looked. Most of them use MySql. Im on flat file. <1> bluelotus: try it and see :) checkboxes only p*** name/value when checked. <14> philip, ;-p Thanks lol. I have had the biggest issue knowing when something is/isn't set. <14> Is it possible to unset a string? string = ""; makes it empty... <1> unset()? :) <14> ... *dies* <0> lol <14> Thankyou. I'm gonna go code now. I feel like a retard. <15> How come this doesn't work? if (isset($antall) && isset($navn) && isset(epost)) { <14> But yes, I do appreciate the help. <1> heh <1> ramvi: there is a 100% chance that it works <16> ramvi: what's 'epost'? <5> ramvi: what is the value of the constant "epost"? <1> oh heh <1> php.net/isset says not to do that for constants :) <17> lol <15> oh, right! Thanks! <15> =D <5> that's enough of that for now. off to do something productive instead. <1> what?! <1> you must explain oop to Hotwir3d :) <5> I can't. He doesn't have enough cl***. <1> heh <17> ...and invent a new type of rocket fuel for no good reason... :) <1> yes, we need "rocket fuel II" <17> :) <0> Hmm <0> In a cl*** how can you make a instance "own" an instance of another object? <0> So that you can delete and add "owned" objects <17> o.O <0> I'm trying to make an RPG inventory Stormchaser <17> o.O <0> I have a shop, but I need to make the inventory <0> Can somebody give me an example of a cl*** that contains 3 variables and how to "set and get" them? <0> Like: name, hp and mp <17> Hotwir3d: What about php.net/oop and php.net/oop5? <14> Can something be !empty() && !isset() ? <14> erg <14> ignore that. <14> Wow... I should sleep more. <0> I looked at them. Don't understand. I know C++ cl***es, Not PHP. <0> Public and private data <17> Hotwir3d: What about "PHP acts similar as C++ does regarding OOP"? <0> What? <17> Hotwir3d: RTFM. seriously. RTFM.
Return to
#php or Go to some related
logs:
SiS SI7012 module name #ubuntu skype extragear ubuntu #ubuntu #ai t INPUT_METHOD suse spca5xx yum fc 6 rpm +rt2570 +dhcp +suse +wpa2 emerge specify package version
|
|