| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Comments:
<0> i think it places each line of output into an array <0> w/ exec(); <1> Yikes <1> Is there a reason you have to use exec() or system()? <2> niceshot: i'm doing- exec("cmd", $var); print_r($var); <2> bilateral: to be able to manipulate the resultant array <2> niceshot: yeah, i need it in an array <0> need what in an array? <2> the result of the command <0> did you try doing just echo exec('cmd', $var); ? <2> i need to do more than echo though, thats the thing <2> hang on <0> make sure it works first <2> if i do this: exec('ls', $var); print_r($var); it works <2> it prints out the whole array <0> k
<3> man <3> i ahte windows <2> but if I do this: exec('grep a somefile-with-lots-of-as-in-it', $var); print_r($var); <2> it doesn't work <1> System calls from PHP are gross. <1> Is there a reason you're not using PHP's functions? <2> for starters I don't know them <2> i'm going to ***ume that there is a php function that has the exact functionality as grep -ni <3> **** <3> im so mad <3> i decided to get a new vid card <3> which ****ed the codecs up for windows <3> and foi corse it snot easy to fix those <3> sons of bitches <1> php.net <1> preg_grep <4> preg_match <5> anyone know of a script, that will block a certain ip adress after, say 5 failed logins, and have it time out after a variable time delay (of my choosing)? <4> preg_slap <4> preg_nantbitch <2> thanks bilateral <6> fail2ban i think does it <2> bilateral: but does that have the functionality of -ni, being able to print the line numbers of the file, and not caring about case <1> It doesn't do line numbers, but just use a counter when you're going through the file <1> and it takes perl regex style, so just add an "i" <4> [ZyteX]: fail2ban and denyhosts <1> eg /blah/i <2> makes more sense to me then, to use a shell exec call to grep -ni, but i'll try it your way <1> Do it how you like, but shell execs aren't the safest thing in the world. <2> bilateral: how would I have the $i increment? I understand how loops work, but to me thie preg_grep call will just burn through the file <7> hey guys, when Install blackdown-jdk using emerge, I seen that the package was masked so I appended 'dev-java/blackdown-jdk-1.4.2.03-r13' to /etc/portage/profile/package.provided yet I still can't emerge the masked package, any ideas? <7> nm <5> drags: ok, thanks, I'll have a look at them <1> Something like: $lines = file('blah.txt'); for ($i = 0; $ < sizeof($lines); $i++) { //see if line matches.. }; <0> yeah <0> or just open the file directly and read from it <1> Yup <0> my php-fu is weak <0> i can't even concentrate here at work anyomre due to the amount of keyboard slamming that seems to shake me up so bad. <0> Sets my ****ing nerves on fire. <0> plus i've been so busy working with all the stupid **** at work <0> i haven't had time to work on my own projects and it's the last thing I want to do when I get home. <0> instead i have to call people and tell them that their ****ing computer is infected <0> hooray <2> you sound like this whiney bitch who goes by 'bitrot' <2> :] <2> JUST KID <0> MrStabby: i am that whiny bitch <0> i'm a big bitch tho <2> i know, i did a /whois before i typed that <2> haha chown <0> no small bitch <0> not a tiny bitch <2> you're taller than me by an inch <0> ohhhh <0> i'm fat tho <2> at most <0> cus i haven't worked out in forever <2> oh, i'm not <2> heh
<0> well hooray for you for not being lazy mr i get an hour to work out WHILE IM AT WORK <2> haha yeah <0> I really need to get back into my running habit <0> I hate waking up early tho <0> If I had a workout hour that would so own <0> and paid for it <7> yah working out in the morning really pays the dividends <7> I'm into running , I ran all summer but this winter seems a bit tougher having to face the cold an all...yet its only that first five to ten minutes that seems tougher after that its smooth sailing all the way .. <8> mornin <7> good afternoon <8> PDT <2> **** working out in the morning. i'm talking more around 2pm <2> and **** running. ger on the elliptical machine, so much better! <8> yer, i couldn't handle that either.. not in the morning. I'll hit the gym after work <7> I could handle it, if someone or group of men came to my door and took me by force with just enough time to get my runnig gear on <7> as if we were in the army .. <2> i used to run pt every morning with some 1st group guys at ft bragg <2> that was at ~0530 <2> that really, REALLY ****ed <7> MrStabby: use must have felt really good for those days though <7> :) <2> i'd fall out after a few miles and go home and sleep for another hour <7> :) <2> this preg_grep is pissing me off <9> oh hi <2> it makes no sense. it asks for an array. if i'm opening a file and going through it line by line already, to increment a line counter then how do i use preg_grep($string, $array)? is there a way to make $array the current line in the for loop? <2> so if it matches, i just echo back the line-number counting variable <2> and then have some other magic happen <1> foreach ($lines as $line_number => $line_text ) {} <1> preg_match may be what you want <1> Or better yet, strpos or strstr <8> pt is different than regular working out at the gym <1> If you just want to know if the $x is in the string <2> nastjuid: that depends on who is doing the PT <2> if it is a DA team, that consists of weigt lifting and minimal cardio <2> which is all done at a gym <8> 0415 you're out of bed and lined up at the door ready to go <8> hernandez was such a **** <8> but i guess that's why we liked him so much <1> I could handle weight lifting, but having to run more than 40 yards pisses me off <8> haha <9> this blackberry client is nifty. <7> bilateral: all takes practice, you can be running kilometers in no time with good effort. <1> Yeah, I used to run quite a bit when I played soccer. <1> Then I started playing football, and got used to the whole "40 yards is the most you should have to run" idea <10> does gentoo (or linux in general) have any security "audit" reporting tools? I'm not referring to scanning software like nessus/nmap/etc. Rather, something that looks at the installed packages and their versions, and compares it to a list of package versions and the possible vulnerabilities ***ociated with that version. <4> arp: rkhunter is one <4> there are other <4> others <11> arp: glsa-check, part of gentoolkit <10> thanks <4> chkrootkit another <2> bilateral: i think i got it! brb <4> tobbez: oh word, even more of what he asked for <1> Cool, MrStabby. <10> glsa-check is more of what I'm looking for. thanks. <0> damn <0> yet another portage update <12> i forgot to set a root p***word during my install <12> any way to set it <1> Boot into the install CD <1> chroot, and set it. <12> just chroot /mnt/gentoo /bin/bash and then p***wd ? <1> Yup <0> you don't even need the /bin/bash <0> but yeah <2> yay it did work. thanks bilateral <12> so question... <1> NP <12> this was in my virtual pc and everything worked like a charm <12> i was going to make this a torrent to share on the internet <12> as a minimal install <12> but my vhd file is 3gb
Return to
#gentoo or Go to some related
logs:
open source wrtg54x2 firefix input background how crayfish protect themself cumfiesta passdump #nhl #politics #beginner #windows #hardware #beginner
|
|