| |
| |
| |
|
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
Comments:
<0> i.e. 0-254, instead of -127 to 128 <1> stestagg: this method is working pretty well, thanks <0> mattmc: those are for working with ascii code... not binary data <2> regress: ooh good. it's a lot of a hack but hey <3> http://pastebin.com/577772 <4> stestagg: I pm'ed you did you get it? <3> up-to-date <2> root404: Yes, I'm spamming it waiting for you <4> Hmm, I dont see anything... <4> stestagg: Hmm, do you have another IM? Yahoo? AIM? <2> MSN <4> Email? <3> ^Artnez, dumb question... post email and section (undefined indexes) are $_POST variables... what's the best way to define them? <2> yeah. <5> there's no dumb questions, only dumb people.
<4> No I mean, what is the MSN email? :P <6> dampjam: we dont do $_POST['whatever'] = "BLAH"; <6> oops <2> sry. <6> that was directed at FenixRF <2> you get that? <4> No :( <2> kk. ffs. this IRC client is not good. <2> stestagg@gmail.com <3> ^Artnez, I dont think I do that :) <4> stestagg: Are you offline? <2> no <3> ^Artnez, if ($_POST['email']) { do something; } same with section and post <4> Message me. infinity@dienstbierdesign.com <6> FenixRF: i thought you wanted to define them.. if you want to check if they're defined use isset() <3> ^Artnez, no... I forgot to use if (isset($_GET['post']) { do something; } <7> hm, I have a dilemma- the author for a piece of work has gone missing for several weeks, all attempts to contact him recently, have either failed, or gone un-heeded. I need a number generation algorythm that takes five to six numbers(depdending on the length of prefix, and come up with a somewhat sequential pattern- the prefix is used as a seed- 1, 3, 7, 16, 24, 39, etc.)- the catch is- a given should generate different numbers than any other given 'seed.' <8> wtf, who has $_GET['[post']; <8> bad programming practice.... <3> what's so bad about retrieving a GET? :) <3> ^Artnez, notices fixed <3> TML, http://pastebin.com/577772 is the updated code... <6> Fenix: what's the URL again? <3> http://test.rdfleming.com <8> naming a p***ed-variable post, when sending it get <3> ^Artnez, fixed a notice I missed <6> Fenix: okay, uncomment now <3> ^Artnez, it is uncommented <3> do you want me to comment out Connect now? <6> yep <3> oh ^Artnez want more wierdness? use the WebDev tool and edit the CSS <3> you'll see as soon as it loads, the right menu pops up <6> FenixRF: works for me now <6> n/m ugh <3> close and refresh, it's down at the bottom again <6> this is freakin WIERD! <3> and it's only in FF <3> ^Artnez, I'm gonna comment out the Connect function now <3> ^Artnez, done <6> honestly man.. no freakin clue <6> i dont know how it can do this <6> without changing the entire file.. i'm confused <6> i mean i've seen some wierd **** before but this.. 0_o <9> I don't see the problem right now. The table is at the top. <3> ^Artnez, it's reall driving me mental. I can give you access to my entire codebase, that is if you don't mind helping me figure this out :) <6> TML: yea he commented the affending "code" out again <6> it was there though, we just checked .. no notices/warnings <6> i have the HTML source for both occurences and it's _exactly_ the same <6> i just dont see how that's possible <6> FenixRF: can you uncomment the offending code again? <3> yep <3> done <3> one line uncommented <6> goddman... <6> ok well lets see the cl*** file in pastebin <3> k <3> The whole cl*** is here... http://pastebin.com/577797 <6> well commented, me likes <3> I try <6> ok lets try something funky
<10> I have a few questions to clear things, up. <6> uncomment the $comment->connect() <10> Does it really matter how bit a PHP file is? <3> it is <6> then in the cl*** file, comment out the whole method <10> I mean, does it really matter if its like 100kb? <3> ok <6> so it is declared, but nothing in it <3> that doesn't look so hot :) <6> nah it doesnt huh <3> there's a few other pages that use that cl*** <6> ok then <3> I'll make a temp cl*** and link it <6> no dont <6> remove the "or die()" <6> for both <3> ok <3> I'll remove the entire if statement in connect and the or die <6> just think the die()s might for some reason be calling it <6> *causing it <6> in fact.. why is there more than one connect() call? <6> see now it works <6> FenixRF: the problem was that you were calling connect too often <3> it doesn't work on my firefox <6> FenixRF: clear your cache, it should work ... works for me <6> neeeeever ****in mind <3> yeah <3> works for me <6> yea works here now <3> then it doesn't on refresh <6> anyway dude... in the connect() method, at the very top of it... <3> ^Artnez, but why should that matter if I use the cl*** 3 times? <6> do this .. if ( $this -> SessionLink == "" ) { // then connect } <11> I just installed joomla on my localhost andthis cms system should be able to send emails but I does not. <11> So I think its a misconfiguration of PHP <6> FenixRF: the problem is you're connected to the DB way too man ytimes <3> 3 times is too many times? <11> what do I need to do? <6> you shouldn't call the connect() method more than once the entire script execution <6> the ONLY time you should be doing multiple connects is if you're connected to different database _on different servers_ <6> FenixRF: instead, have a generic Database cl*** <6> that has methods like query, connect, disconnect, get_row, get_field, etc <6> then reuse that cl*** for all other cl***es/functions <12> Lateralus: Why's that ban everlasting? :P <6> that actually explains why the page load time was so ****ty for such a simple page <3> ^Artnez, that and the database is located on another server :) <6> so you're connected to the 3 different MySQL servers? <6> *connecting <3> ^Artnez, no... 1 <6> right. that's what i'm saying. 1 connection handle per server. <6> kuja; support me on this :) <12> Hm? <6> Hi. <3> ^Artnez, ok... I have a question... <3> I'm using the cl*** to connect to the database <6> He has a cl*** that works with the database, he makes 3 instances of that cl*** throughout the site and uses the connect() method 3 times <3> but I'm retreiving data from a couple of different tables. <6> each instance has its own connection handle .. its all the same db <13> hi. can php give me the name of a process running on a linux box if I have its process id? or can it check if a process is running with a given id? <6> FenixRF: that doesnt matter <6> that's why you do mysql_select_db() <3> ok <6> and thats why you have MySQL queries that look like: "SELECT * FROM mytable"; <3> so can I make one connect, then copy the object $mysql to another object? <3> $newobject = $mysql ? <6> FenixRF: inncorect <6> are you on PHP4 or 5? <3> 4 <2> FenixRF: Have the resource handle as a global variable. <6> i think a singleton is possible in PHP4, but i'm not sure <2> FenixRF: then check to see wether it is valid, if not then call mysql_connect <6> FenixRF: you can do that, but then you're losing the OOP aspect <14> hihi
Return to
#php or Go to some related
logs:
#perl wiki ubuntu scanimage libphp5-mysql brn.it #python debian dm-crypt module-assistant #math ipw2200 won't activate 2.6.11 kernel #qemu #perl
|
|