| |
| |
| |
|
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> vicky: Now let's try: echo $sSQL, "<hr />\n"; <1> Jemt: Put a call to echo() in your constructor, it should only be called once. <0> dbruns: maybe the apache guys all hang out on another IRC server... They gotta be somewhere. <2> ok.. <3> richardlynch, there are a good number in there.. its just dead <4> MarkR: Sec, I'll test <2> richard-i got erors <0> dbruns: you'd be surprised how many of them might be bots or guys who really spend their irc time elsewhere... <5> MarkR: Well, PHP doesn't have a copy constructor, the act of making a copy (As in 4) doesn't re-run the constructor. ;) <0> vicky: EXCELLENT! What errors? <2> Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 <1> mattmcc: Hmm, nevertheless, it has __clone, right? <3> richardlynch hehe no i wouldn't be surprised :-) did you take a look at the page? any ideas? i have it almost complete myself just have one problem where it cuts off the last character <4> MarkR: Ah, I found the problem. Is it not possible to ***ign a new value to a static attribute using a static function on an object? <0> dbruns: I can only make a wild guess that you are missing a $ in your pattern or something... There's a REASON why I avoid mod_rewrite :-) <5> MarkR: True.
<4> MarkR: Like this : self::$_xmlDocument = new MyObject(); <0> dbruns: Turn on the mod_engine_logging and the debugging and tail -f your logfile to see what it's doing. <2> richard-u checked it? <1> Jemt: I'm sure you should be able to. You should be able to access static member variables from anywhere <0> vicky: I missed the beginning where you told us where to visit the site itself... What's it say? <4> MarkR: Weird. Thanks though <3> richardlynch AHAHA that actually makes sense.. i had it in there but hat a * before it.. looks like I need to make 3 seperate rules.. but thats easy enough <0> vicky: Whoops! See it now. <2> Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 <2> :( <0> vicky: You sure you typed the variable name $sSQL correctly?... <2> yaa <2> echo $sSQL, "<hr />\n"; <2> ??? <0> vicky: Ignore that error for now: Does the query show up with your username in it? <2> ya <2> it shows <2> it shows my username and a logout button <6> !+enter <7> Don't use the enter key as puncuation. Think in complete thoughts, then type. <0> vicky: I suspect that showing your username and a logout button means you ARE logged in... <0> vicky: Did it always do that? Or is that "new" behaviour? <2> ohh <2> its a new behaviour <0> vicky: You can take out that echo line, then, and try it. <2> ok-check the first file once http://pastebin.com/656303 <6> vicky3160: Have you wrote the script? <2> nope <2> i got it on net <2> check line 28 <6> why don't you ask the one, that did for help, then? <2> dint get anyone <8> Stormchaser: Pure case of 'we don't support other scripts'... that's why I washed my hands of it. <9> !tell vicky3160 about enter <10> does anybody know how using oci_fetch_all / ocifetchstatement to grab a page of a result compares to using ROWNUM in the query to do a similar thing? <6> Ahroun: s/he knows that? <6> !tell vicky3160 about g10 <6> Just to make sure. <8> Stormchaser: No, I couldn't remember what the php-bot guideline was. <11> Stormx2, hey <2> richard-please check line 28 <4> MarkR: I really dosn't understand it.. I just can't make my function return my object as a reference. Could I have you look at a simple example? http://pastebin.com/656351 <0> vicky: I can't run your code -- Line 28 is "fine" You're gonna have to contact the authors of the software where you downloaded it. <12> does anyone know if you can get phpdesigner for linux? <13> return &self::$_xmlDocument; ? <8> oh thank you thank you thank you storm. <1> Jemt: Ahh, your object is returned by reference, but "NULL" is not an object, therefore replaces the object *reference* with the *value* "NULL" <13> err <6> !tell System- about editors <13> that, and that's incorrect use of NULL <13> heh <1> Jemt: Try $xml1->something = 42; echo $xml2->something; <0> vicky: I can't run your code -- Line 28 is "fine" You're gonna have to contact the authors of the software where you downloaded it. <4> MarkR: Testing :) <1> Jemt: Also, the Singleton pattern ****s :) <14> hi, i'm trying to make a server using sockets, for the life of me i can't find anything that will correctly detect when the client has lost connection, it works ok if they close the connection but not if the client looses their connection for some other reason :( i've tried using socket_read (checking if it === FALSE) and socket_recv (checking the flags) <8> ah, here it is. <15> hiya. i setup curl on a win2k3 iis6 server (for a client) but can't seem to get curl + ssl working. anyone ever deal with this? <8> !tell vicky3160 about g10 <4> MarkR: Why?
<6> Ahroun: *blink* <0> wunderkin: Maybe just timeout the connections after X idle seconds. <4> MarkR: It's not the true singleton pattern btw. It's not an instance of the cl*** it self, but an instance of another cl*** :) <1> mrkris: At the time that you build the curl library, you must build ssl support in at that point - having SSL in PHP is not sufficient. You may find it easier to use fopen() instead- either that, or closely control the environment you build curl lib in. <14> richardlynch, yeah i've thought about that but i would have to figure out how to do that instead, just checking this route first <8> and forgot I can't do the + think, gah. <8> s/think/thing <6> Ahroun: she's here, but I have already told her about g10... And she's quieted for not following the rule. <8> 'k, I'll just be quiet now then. :) <1> Jemt: Because the Singleton pattern is a glorified global, which is just a pattern for making people feel less dirty about using globals, whereas in fact it's not really any different. <6> good boy. Now bark! >:) <0> ahroun,vicky3160: You did. Sorry Vicky -- Just too many PHP packages for us to help on stuff you downloaded. You also need to stop hitting "enter" so much in IRC <15> MarkR: I didn't build by hand, just installed the binarys <1> mrkris: Well, complain to whoever did then :) <15> php.net :o <0> mrkris: Is there an openssl_php.dll you enabled in php.ini??? Wild Guess. <6> mrkris: Have you used zip or the installer? <1> mrkris: The use of curl with SSL is *NOT* related to having SSL built into PHP- it is *NOT* sufficient to have PHP ssl support. <4> MarkR: I must agree with you on that. But in my case it think it's allright ;) <15> Stormchaser: zip <15> richardlynch: I enabled the ssl, and curl, etc <15> ssleay32.dll and libeay32.dll exist in the proper dir <15> i HATE windows hehe <0> MarkR,mrkris: Bummer. Guess you need to convince somebody to re-build curl WITH SSL -- or find such a build. <16> did someone say that dates in mysql are stoyed yyyy-dd-mm but come out as mm-dd-yyyy when got back as a string? <17> Squalleh, MySQL returns YYYY-MM-DD <16> yeah i just realised this <1> Squalleh: It wasn't me. I have never seen any dates come out of mysql in daft-American-format <17> not sure if it *really* stores them that way, but you enter them that way too :) <16> date_format() will flip them wont they <16> in mysql <17> MarkR, never used the date functions? :) <16> why do daft americans use mm-dd-yyyy actually? dd-mm-yyyy makes so much more sense but its a pain to flip the dates around <0> Squalleh: Yeah, you can also probably configure MySQL to do date input/output any way you want. http://mysql.com <1> I have a standard function I wrote which converts a mysql date into a unix time, then convert it back as necessary, taking account of timezone etc. <16> hmm <0> MarkR: What's wrong with the MySQL function that does that? :-) <16> i guess exploding the string would let you flip the date into dd-mm-yyyy <1> richardlynch: I don't like using the database to do presentation logic <16> if you used mysql to get it to mm-dd-yyyy then exploded on - to give you 3 elements in an array <17> MarkR, strtotime() will do the formet, and date() the latter... <8> squalleh: and what's with the daft folk using dd-mm-yyyy? store it with the most significant first so that your date-time stamp goes from broadest (year) to narrowest (decimal seconds) <16> and imploded them back as [1],[0],[2] <1> I am aware how to do it, I have several apps using it. But I don't like strtotime(), it's dodgy <0> Squalleh: date_format() in MySQL may be cleaner, or not, depending on your religious convictions. <16> dd-mm-yyyy is logical :P its the xth day of the xth month of the xth year <16> not the xth month of the xth day <0> Squalleh: How it's stored is irrelevant. So long as MySQL < = and > all work right. <16> yeah im just thinking of ways to play with it <17> Squalleh, FYi, the reason is quite simple, Americans say "January 31st 2000" so "01-31-2000" rather than the europeans like "31st January 2000" so "31-01-2000" <16> mm-dd-yy is like storing times hh:ss:mm <0> Squalleh: You shouldn't rely on the way it HAPPENS to come out of your MySQL installation. Another configuration of MySQL could alter that. <14> ok, well thanks for the ideas, i thought there would be another way to do it, according to the docs it seems like it does but maybe that is for something else :/ <8> only logical absent a time stamp. Time DOES have a fixed format, so since you can only logically interpret it, you should format your dates to flow in the same directional specification. <16> very possibly <0> Davey|Work: Yeah, but WHY do we say it that way? :-) <18> guy's are recommendations for shop systems <16> dont use long words when im on my second drink, mmkay? <10> yyyy-mm-dd is easier because it sorts naturally <1> I don't like using strtotime() as it is too flexible. I don't want a machine-machine communication to ever contain a date like "next tuesday" <10> i think timestamp stores it yyymmdd.... <16> yyyy-dd-mm is easiest to catalouge and order so i can see why they are stored that way <19> Squalleh - supercalafrajalisticexpialidocious <10> which you can use the default of now <16> i just dont get why date_format() wont flip it back ot dd-mm-yyyy like a british person :P <16> stupid american software <16> thanks enygma <10> php is not american <16> date_format() is a mysql function :/ <0> Squalleh: date_format(yourfield, '%D-%M-%Y') or something like that. http://mysql.com <16> oh yeah you can change it
Return to
#php or Go to some related
logs:
up2date cups bus error emerge kde-meta sed package.keywords #osdev #linux #mysql gstreamer-plugins-ugly fc4 #centos #perl #perl ktorrent sarge deb
|
|