| |
| |
| |
|
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> threat: Would you put that on a letter to an employer? How about on a request for funding? <1> threat: Why not? <1> We're not worth your effort? <0> threat: The answer is, you wouldn't. Because it makes you look stupid. <2> if he says yes it's a pretty fair call <3> caffinated, no I wouldn't, however this is IRC and does not require the same level of formality <2> :p <1> threat: Because while you may want help, you don't feel you should have to be presentable while asking for it? <4> threat: I believe, though i may be wrong, the thought behind that rule is that we are all professionals in what we do, Just like a very nice restraunt would not allow in someone in rags, or cursing loudly, (purely an intelectual basis) we hold the same truthes with our ability to communicate. <5> how can i get a proccess list in php for windows? :S <4> Iron_lord: ctrl-alt-delete? <5> Dont have access <4> Iron_lord: hacker!@ <5> lol no <6> while(list($object)=mysql_fetch_row($current_server)) shouldnt this return whatever object is in the query current_server? <1> Guys! Ease off on threat... he's not an idiot or anything, he knows how to spell. He just thinks we're all a bunch of worthless peons whom he has no reason to dignify with respect.
<7> Iron_lord: probably through some kind of Winapi voodoo, but that is about the best I got... <1> I GET IT <3> Pollita, lol <8> yay <7> as apposed to a bunch of angry pedants? <7> opposed rather. <0> Iron_lord: without doing an outside DLL call, you'll probably need to use a commandline tool. Iirc, there is one that comes with the admin tools (probably found on the installation CD somewhere) called tlist.exe <4> POllita: I still fail to understand women... You stand up for him, then boot him? <9> Hello <10> jonnay: the log showed nothing <0> Iron_lord: I'd help you with the Win32 API call, but I wouldn't even really know where to start with that. <5> hehe <1> lith: I hate to be so contradictory, but it's in the vagina handbook. I've got my own rules to obey. <5> never mind <9> This is a newbie question but i want to take a "Crash course in PHP" <0> symoid: http://php.net/tutorial <1> symoid: That's a statement, not a question. <4> Pollita: lol ... (psst) mind if i borrow that handbook for a while? :> <9> Is that the best way. <4> Pollita: I'd be an instant billionare selling that thing :> <1> lith: Trade ya for the penis pamplett <9> Pollita: ok sorry, where s the best place to take a crash course in PHP please? <4> Pollita: ANY TIME @! <3> Pollita, any way <0> symoid: I just told you where. <7> junix|work mmm. That seems odd then. how about an apachectl configtest? <4> guys are easy... beer, food, ***... its a 3 page flyer <9> I know, i was just correcting myself for Pollita <1> symoid: caffinated told you: http://php.net/tutorial <4> and written in big *** font <0> lith: three pages is probably being generous. or did it also include pictures? <1> oh, alrighty then <9> Thanks caffinated <1> lith: An 8.5x11 trifold? <1> Not so much with the words... but it has nice pictures? <11> hello all <10> 1 sec <1> [BEER STEIN] [HAMBURGER] [NAKED GIRL] <4> Pollita: Well not of me, you see, My novel would would have to say "illustration continued on page, 2, 3, 4, 5, 6, 7, 8, 9" <11> anyone know what the best function to use to get the very last line of a file would be? <4> :D <10> jonnay: its says the syntax is ok <1> ezra: Depends if "best" means "most efficient" or "laziest" <12> would a function like this: http://pastebin.com/545687 be of any good? I mean would it sometimes output \' ? cause I would like it to put the stuff correct into database but also output it right <11> Pollita: hmm good point... i'll go with most efficient :) <0> lith: I can sum the whole thing up in one photo actually: http://www.anvari.org/fun/Gender/A_Little_Difference_Between_Men_and_Women.html <11> i presume i would fread() the file? <1> fgets() but yeah <11> or i could exec() <11> and just do tail <11> for the very last line <4> caffinated: BRILLIAN! <11> oh fgets, my bad <4> er brilliant! <0> lith: hehe, i thought you'd like it <11> Pollita: are there any reasons to do one or the other? <7> junix|work: Mmm.. are you sure that the apache conf that you modified is the same apache conf that apache is loading? <1> I like the phallic imagry in that switch <1> ezra: Memory usage versus CPU usage <0> Pollita: it would be better if it was to scale
<11> Pollita: ah, hmmm... a hard decision either way then :) <1> ezra: Depending on what you know about your file, a SEEK_END and a series of fgets() might be the most efficient for both <7> junix|work: I am rusty on my apache, maybe ther eis some kinda option to turn debugging on in the error log, so you can see if the php module is actually being loaded. <0> realisticly, it should be a 14" knife switch <11> Pollita: well it's a log file, and i need to get the last line of it... i know that much <13> hiya, if I want to send a variable, called $length, which denotes the length of a file I'm sending across the socket I've got open, how can I tell how many bytes I'm sending? <0> or at least, it should have the illusion that it is <14> I would like to build a PDF in PHP. There are a lot of PDF cl***es etc out there. Can anyone recommend one? I need to be able to build the PDF dynamically (ie. not just spit out SQL results). <13> since $length is a variable, I aint sure how to find it's length in bytes so I can tell socket_send() how many to expect <6> can anyone give me the abridged version of getting a column out of a mysql_fetch_row? <0> Smegzor: http://php.net/pdf <1> Like, if you know that no line will be longer than 200 characters, you might do: function last_line($filename) { $fp = fopen($filename, 'r'); fseek(-210,SEEK_END); while ($line = fgets($fp)) $last = $line; return $last; } <14> Why are there so many independant PDF cl***es when thats there? <4> DogWatter: $query = "select col1,col2,col3 from table where table.col1 = '$value'"; $result = mysql_query($query); $row = mysql_fetch_***oc($result); <15> kosh[0], if the data is in $data, $data = "foobarbaz", $length = strlen($data); $length will then equal 9, which is the number of bytes. understand? <1> erm.... fseek($fp, -200, SEEK_END); <6> lith: the query part is easy <1> or -210 or whatever <13> jonez: thats not really what I wanted <13> I've got $length = ftell($handle) <13> I want to send to variable, $length, across the socket <4> DogWater: really? thats probably the hardest part for me :D <16> hi, i need to try changing the mysql.default_socket setting in php.ini to see if it will solve an error i have connecting to php. i'm running mac os x 10.4.4 and my /etc/php.ini only has a php.ini.default file (no php.ini and not php-recommended.ini) - my question: what file do i use and how/where do i modify the setting? <6> lith: i just want to know how to get the field object for this one row ***igned as variable $service <13> so, socket_send($socket, $length, sizeof($length)) ? <1> Basicly, seek till you know you're in the second to last line or earlier, then start spooling lines until you get to the actual last <8> DogWater - eh? <6> lith: without pulling out the thing into an array <15> kosh[0], did you try that? <13> no, I didnt tbh, I thought it wouldnt work <4> DogWater: ? You want _1_ column from a result? <8> DogWater - mysql_fetch_row returns an array <15> kosh[0], try it and see.. if it doesn't work then come back and ask again <13> php has sizeof ? <4> DogWater: YOu can do that, though i _promise_ your computer/server wont be pissed that it has to create an array <17> lets say each mysql record has two fields... *time* and *created* ... time is in unixtimestamp format... created is in regular datestamp format... update every record so that the time field correlates with the created field... heres what i have so far, but it stuck the first $row[time] it found into all the created field rows.... http://pastebin.com/545690 <1> kosh[0]: Yes, but it's not what you think it is. <6> enygma: yeah; alright, I just didnt know if i always had to do a 40 step while loop to get a single field out of my db <17> can anyone help with this? <13> Pollita: well, I'm coming from C, so I'm thinking it'll return the number of bytes that make up whatever I'm doing it with <15> kosh[0], maybe pack() is what you want? <13> jonez: is it? <1> kosh[0] How should the length be encoded? As an ASCII string? As a single octet? As a big-endian short? As a little-endian long? <15> kosh[0], *maybe* <1> kosh[0]: Right, and it won't. <4> dogwater: php.net/mysql_result <13> Pollita: well I want to send the length of a file, across a socket <1> kosh[0] How should the length be encoded? As an ASCII string? As a single octet? As a big-endian short? As a little-endian long? <13> so I use ftell() to return that <13> Pollita: I know, but how else can I do it <13> I don't know how php encodes these things <4> DOgWater: Then you want to limit your query to 1 row... by using the WHERE clause in your query. <13> so I'm unsure as to how to obtain the information in order to send it <1> I'm asking you, how does the protocol you're using EXPECT the data? <13> Pollita: it's a simple socket, it's just bytes <1> okay nevermind <11> Pollita: wow thanks, let me try that <8> ew, papsi <1> I ***umed since you're "coming from C" you had some concept of network programming <13> Pollita: I know about that <17> anyone? <1> No, you don't. <13> yes I do <13> I know all about little and big endian <1> The fact that you're so miserably unable to answer my simple question proves you don't <13> that was not my question <13> repeat the question, I dont think I read it properly <1> kosh[0] How should the length be encoded? As an ASCII string? As a single octet? As a big-endian short? As a little-endian long? <1> To restate: At the other end of the socket is some server process... <13> as far as I know, it's network byte order, which is big endian <17> i though indians were red <1> That server process is expecting you to send a length value
Return to
#php or Go to some related
logs:
FlashVM
#web linux e297 write error swap file perl process username sudo getlogin kuvkir emerge.log permissions #mysql laptop external monitor detect ubuntu Radical_Edward X version mismatch - detected X.org 7.0.0.0, required X.org 6.8.0.0
|
|