| |
| |
| |
|
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
Comments:
<0> slicslak: you can do it elsere, if you desire. Not here. <0> !+g8 <1> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <2> tek, if it's not an install issue, try #sql <3> xshad: I'm looking at the change log for 5.3 and there are some wsdl related <3> wsdl bug fixes* <3> I'll upgrade <4> http://ordrejedis.net/~gwenael/PHP-WOO.txt <- everyone can explain, why don't run ??? <5> hi all <3> well one <6> hiho <7> Will mysql_num_rows() return number of rows effected from an UPDATE query without updating again? <5> I run a sql; query "SELECT SUM(VALUE) FROM table; how can I use php to strip all the chars and leave me with a 2 place decimel number? <8> I would I go about storing a string into an array, however I want to start storing it after it comes across a keyword <0> SunShineLady: There should be something like mysql_affected_rows() <9> SunShineLady: you want mysql_affected_rows()
<4> http://ordrejedis.net/~gwenael/PHP-WOO.txt <- no idea ? <7> :D <8> or how can I delete from a string anything before a keyword <10> oi <10> anyone know backbase or bxml ? <11> backbase the ajax thingie? yes <10> how the hell do i interact with bxml with php <12> Well, how does it interact with other languages? <10> like with the petshop exemple <10> exactly <5> I run a sql; query "SELECT SUM(VALUE) FROM table; I can't get this to display as 2 place decimal (dollar amt)? <10> i know how to soap, but i don't understand how to with backbase <11> don't know <13> slayer : use the money_format; money_format($result); <5> ty <14> HI. <14> How does one go about building an RPM from a PHP tarball? It looks like I'm missing a step to be able to generate a real .spec <15> anyone know how i can choose an option from a dropdown menu and result in a shaded-out text box? <16> is it possible to instantiate a cl*** to a constant <16> ie: define( "my_cl***", new my_cl*** ); <0> xshad: http://storm.homeunix.org/misc/bts/sonoratop.jpg <17> no, constants must be scalar values <16> ok thanks. are there any ways to have a variable that cannot be redefined <16> for instance if were to have a variable called $my_cl*** and wouldn't want anyone to redefine it later <18> no, not as simple as that <16> i guess i could just have an object that has these variables as properties so it wouldnt get in the way <19> can anyone think of a reason that file_exists() would not return true for a file in a path mounted via NFS until I do "ls" (or something similar to access the directory) <16> i just hate the extra typing needed to get it going.. like: $my_app -> database -> get_array( "SELECT * .... <11> Stormchaser I can't connect :( <0> xshad: you can't? <11> nope <11> now yes ;) <20> ^Artnez: You could have it as a singleton <16> wouldn't that achieve the same thing as just having a global object? <16> except there would be extra processes everytime someone wants to access that var <20> Well, it would mean that there would only ever be one instance of the object, therefore you could always garunte that any instance of that object was the one you expect it to be, ie, it's constant <11> Stormchaser nice :) I can't try to work with cartoons, like an history :( I'm not able to draw the same thing more than once... it NEVER seems the same <3> if this new version of PHP doesn't fix it <21> if you set the vars on instatization then you could make the vars private and leave out any functions to change it <3> fix the google api thing <3> maybe it's because I use a router? <3> I'm doing this from my lan <22> Has anyone here worked with APC? <3> obviously it's not the PHP <3> but it has to be something <11> s|k no... I'm using firewall and nat here <16> bubblenut: i understand, however i wouldnt want to the extra processing time to get the object reference when someone would need it ... it would happen alot <3> xshad: what could it be? I copied your code word for word. It should work! :< <3> well <3> I'm doing the make on php 5.14 now <0> xshad: I managed to get used to it... It's still not always the same, but I make the character be seen from different angle... <3> maybe it's a bad key? <20> ^Artnez: What extra processing time? You're just grabbing the instance out of a static variable. If anything instantiation's quicker as it only ever gets done once. <16> bubblenut: i dont plan on instantiating multiple times <11> Stormchaser I see the same :) even changing the angle... nice work btw :) Liked it <11> can't wait for page13 lol <23> xshad: you too?! <20> ^Artnez: Well then a singleton is _exactly_ what you're looking for. <11> itrebal me too what? :) <23> xshad: i cant wait either :)
<20> ^Artnez: I don't understand where you think there is going to be any extra overhead? <16> bubblenut: no it isn't. i dont have a problem with multiple insantiation .. it just wont happen with the way i have things set up. <16> it's alot easier for me to do global $database; <11> itrebal lol :) storm wouldn't release it :( <11> for now :( <20> ^Artnez: OK, then <16> bubblenut: i know what your saying about the singleton though, i use it alot its just not the right case here <11> s|k http://hashphp.org/pastebin.php?pid=6801 last one <20> ^Artnez: ...and I continue to be doubtful. Global variable are never the answer. Either a singleton or some kind of identity map instead. However, I can see this going to go nowhere. <0> xshad, itrebal: kids! :) <11> ops... pid=6802 <23> Stormchaser: :) <11> Stormchaser =) <20> I've just started a new tradition. From now on all my servers are going to be named after characters from H2G2 <16> bubblenut: that's not true. global $database is alot cleaner than database : : getInstance() for a few reasons... <16> the main one being that the cl*** may need to be used again for one reason or another <3> xshad: upgrading didn't help :/ <3> it's the exact same code you use <3> well <11> s|k same exception ? <20> I here by christen this server marvin! <3> I'm not calling it through apache, but using php googleAPI.php <3> xshad: yes <3> bad key? <11> let me see... <11> s|k http://201.24.61.172:81/~douglas/desenv/applications/g1/test/search.php using a bad key <20> ^Artnez: So you use a map which returns a single object per setup, so if you p*** in the same DSN you get the same database object back. <11> I get "Invalid authorization key:" <3> xshad: no, that's not my error <3> :/ <0> !+enter <1> Don't use the enter key as puncuation. Think in complete thoughts, then type. <16> bubblenut: and for large apps that have many objects, that is more efficient than simply doing global $database? :) <24> php-bot: test <24> oh <16> or, global $my_main_object; <0> !quit <20> ^Artnez: What happens when someone using your app decides to do global $database; $database=null; ? <0> :) <24> I ought to write a mon test for that <16> bubblenut: then i'm an idiot because my users shouldn't be digging through my PHP files :P <24> You know, in my copious free time <0> TML: That wouldn't be a bad idea <23> TML: of course <25> I have a 256MB big SQL file, no konsole. Only phpmyadmin and FTP <26> test new macbook.. <23> Middy: i dont have any konsole either, i do however have a terminal <20> ^Artnez: That's the point they don't need to be. They may be quite innocently using that variable for something else, without knowing you've already used it. <25> How do I execute that against my MySQL DB, anyone know a bulk inserter written in PHP <16> if it's a developer, they need to follow some rules. this is also why i said use global $my_main_object. My solution that just came to me is to use a global object instead of having to do global $database, session, etc <16> you can break *any* framework if you dont follow some simple rules <16> and honestly, i would rather tell them "the only reserved var name that can't use is $myFramework" .. then having the overhead of a complex singleton that will seperate different objects by IDs <24> Stormchaser: Timed out <20> I can't be bothered to go through all the reasons why global variables are evil, especially when so many others have already done it <20> http://www.cs.usfca.edu/~wolber/courses/110/lectures/globals.htm <27> Any simple String function (I cannot find) that will match substrings in a database based on relativity (maybe not correct word) for instance, "Words" would return "Word 90%" "Words 100%" "Worm 70%" or such? <23> TML http://repository.itrebal.com/uploads/sonoratop.jpg there ya go, i mirrored it <16> bubblenut: it takes one sentence to prove a point, dont back out that easily :) what you are asking for is to increase application overhead and make things more complicated than they are <26> heh <0> TML: This should do it, thenhttp://www.between-the-shadows.com/images/sonoratop.jpg <23> (it timed out to me) <20> No, I'm asking for modularity in applications. What's the point in developing with OO principles if you don't stick to them. <20> ? <24> Sarkie: That's something your database would traditionally perform on your behalf <0> my ISP is going haywire it seems <3> xshad: is there a required lib it uses that I might have that may be out of date? I see something about that on google groups <9> is there a function that returns the last error that was outputed? <11> s|k I've only used the given wsdl <24> Stormchaser: You do a lot of pencil-work before bringing it into electronic format, eh? <16> bubblenut: sure there is plenty of modularity. the problem is balancing performance and structure (explains why java is so slow) <27> TML sorry Im quite new to php, so a mysql function maybe? <20> You make each component only usable within the context of the application. To be perfectly honest the singleton sollution isn't really ideal either.
Return to
#php or Go to some related
logs:
#linux kst quakenet
#linux how do i resolve failed to execute child process gksu. #perl sync kontact axim x51v not a valid identifierad linux recover cold backup mysql linux cvs login+automate wepattack deb
|
|