| |
| |
| |
|
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
Comments:
<0> well if I user 'foo' posts and there is a user 'foobar' the regex would pickup both <1> shadowarts, you mean their unix username is <=8 chars as well and you want to display gecos info? <2> afroturf: I'm not sure what your question is <3> zircu: Yes, and as we just discussed, you wouldn't plug a partial name of less than 8 characters into that grep to begin with <4> Qube, no i just want it so i could make a link when they click on author so it goes to <author>.shadowarts.org <5> lith: you know of a way that i could do that? <6> is there any way in gd to get cmyk values of an image instead of rgb values? <5> lith: thats my question, sorry? <0> of course you could always modify the regex to do a /^$username:/ <2> afroturf: iterate through the array and see if any of the values of the array == 'yes' or 'on' or whatever you have your value="" to on your checkbox <1> shadowarts, have you looked at posix_getpwnam() ? <0> oh wait.. i'm thinking the otherway around now <5> lith: do you have a quick example? <1> I can't tell yet if he means his unix username is "shadowar" or "shadowarts" <4> its shadowarts <2> afrtoturf: so in the html you do <input type="checkbox" name="one" value='YES'> after submitting do foreach($array as $key=>$value){ if($_GET[$key] == 'YES') { $value is used }
<5> lith: but i need the checkboxes to have a value <5> lith: i'll pastebin what i'm doin <2> afroturf: A checkbox is a boolean situation... either yes/no true/false <2> afroturf: does that make sense? <5> yes <5> lith: but what i've done is if a checkbox is checked it puts the value in a array <2> afroturf: so then specifying the value to 'YES' means that if its checked the $_GET['nameOfCheckbox'] will be == to 'YES' <2> afroturf: man.. I dunno... thats how i use checkboxes... there may be other ways to utilize that paticular tool... but i cant wrap my head around it righ tnow <5> lith: ok, thanks for the info though <2> no prob. <7> is there a function out there that turns a string month to numeral month... IE Mar to 3? <0> FenixRF: not directly <8> anyone please give me a hint on how to turn on index.php?test=lala argument p***ing by URLs... <7> zircu, so, I have to write something then :) <9> rjokei: Submit it as a GET request? <5> rojokei $_GET['test'] <8> I get a server error <8> so putting it in by manually typing it in the browser address box will gen an error/ <8> ? <7> rjokei, if ($_GET['test'] == "lala") { do something; } <8> no really, I get a server error, so I'm thinking i'm cfg'd wrong <8> error 500 <7> rjokei, internal server error <7> something is wrong <7> check your .htaccess <8> k <0> FenixRF: well, with a combo of strtotime strftime would do it <0> i generally would just make an array defining 'Mar' => 3 <5> or define('Mar', '3') <10> anyone know what those messed up random words in an image are called? (they're usualy used for human authenication on a web registration form) <9> Random words? <11> a captcha <7> zircu, how? :) <0> FenixRF: how in what context? <7> well, you have $dates= array() <7> well, you have $dates= array()array() <8> FenixRF, do you know what i'm looking for? <7> rjokei, a typo <10> tachyon: yeah, an image with a random word, but made hard to read to a computer can't see them <7> zircu, I **** at arrays :) <7> hehe <5> $dates = array('Jan' => '1', 'Feb' => '2', 'Mar' => '3', etc....) <0> FenixRF: well since months are rather fixed, array('jan' => 1, 'feb' =>2, 'mar' => 3); <9> Amorgos: A security confirmation image. . . . I didn't know it actually had a technical name ***ociated with it. <0> and check against the array as strtolower($value); <7> zircu, I got that part... and how do you compare? <7> how do I know if "mar" = $dates <5> if ($dates['mar']) <8> FenixRF, I don't see any typos, might it be anything other than something wrong with htaccess, php is working fine otherwise <7> AfroTurf, so... if($dates['mar']) $mo=$dates['mar']; ? <12> hello <5> fenixrf: that would work <12> can i ask a question about zend studio here? <5> fenixrf: in $mo would be 3 <12> nvm, got it workin <7> not workin' for me :) <13> lith: you there? <7> AfroTurf, did if($dates['$mo']) $mo=$dates['$mo'] <7> might help if I foreach <7> foreach($dates as $key => $value) if($key == $mo) $mo=$value;
<2> rebal: yeah man... I msged you earlier because it wouldnt let me in the channel (kept throwing me to ##overflow) wanted to see what the hell was going on :/ <14> um... if (isset($dates[$mo])) { $mo = $dates[$mo]; }, shurely? <15> when using forms, i've been reading that $_SERVER['PHP_SELF'] is a problem because of xss hacks; i'm wondering what is the best way to process a form ? ---> it would be nice if i could process a form with the same file that the form is in. <5> ok this will explain everything i want to do http://pastebin.com/581139 <2> insin: you could also do $mo = (isset($dates[$mo]) ? $dates[$mo] : false; or something to that effect <2> afroturf: from the checkbox challenge you have? <5> lith: yes thats correct <5> sorry about the type <5> typo* <5> http://pastebin.com/581141 this one with out typo <2> afroturf: :( which array are you using? the $options from the database or $array ? which is array('apple', 'orange', 'pear', 'blueberry'); ? <16> has anyone here used php accelerator? <16> or... anyone know why i'm getting this error when trying to use php accelerator even though the file actually exists? <5> lith: $array displays all my options <16> Failed loading /usr/local/lib/php/extensions/phpa.so: /usr/local/lib/php/extensions/phpa.so: cannot open shared object file: No such file or directory <2> afroturf: and $option? <5> lith: $options is what is in the db currently that i want to compare against $array to see which ones need to be checked <2> to see which ones _have been_ checked? or by default are checked? <5> lith: since apple and orange are in $options i want them to be checked by default when i do my while() loop <2> afrtoturf: very good... so thats all you want? <5> lith: yeppers :) <2> fantastic... <5> lith: you will make my day if you have a solution <5> lith: but keep in mind my actual array has like 50 checkboxes <17> mmm... checkboxes <2> afroturf: http://pastebin.com/581154 <18> Why would you use array_search over in_array? <2> afroturf: even one step further: http://pastebin.com/581158 <2> azmoo: doesnt matter <19> regress: thanks for the suggestion, but it doesn't do FTP either for me <2> was the 1st thing to come to mind <17> what if the key is 0, then it matters? :) <18> certainly does. <2> philip: b4 php 4.2 your probably right <17> php version does not affect anything here <2> or (array_search(...) !== false) would be more effective ;) <2> whatever <2> i dont care its not my code <5> lith: lol <2> ;) <17> heh <5> ah i see something though <18> or (in_array('value', $array) != false) ;) <2> afroturf: but the method will work. use in_arary because im an idiot <17> AzMoo: === owns == :) <5> lith: its ok everyone makes mistakes <17> then again, i always talk up strict type checking <17> == is abused <18> philip, yeah, but at least in my case it wont make a difference ;) <17> point taken :) <17> well, it would be slower :) <2> bah you syntax monkeys :D <17> === is at least .0001ns faster :) <18> Point taken. God I love php. <18> ahahha <20> philip: GOOD GOD MAN#$!@ <17> lol <2> afroturf: did that solve your challenge? <5> lith: i'm woking on it :) <2> right on... That was based on my understanding of your question (which was guess work as to what you wanted to do) <20> woot, null pointer exceptions :D i just love java. <17> php has at least 5 functions for every task <2> ok back to work <5> lith: thanks alot this helps <17> caffinated: java huh? i'm learning C :) <17> and am learning c++ next <20> philip: I'm not writing anything in it. it's what eclipse is currently doing :) <17> heh <5> guess i need to get rid of "INSERT INTO options (oid, vid, options) VALUES ('', '$vid', '" . implode("'), ('', '$vid', '", $options) . "')"; <17> interesting use of implode() :) <5> philip: ya i though so :) <20> AfroTurf: or at least fix it
Return to
#php or Go to some related
logs:
jugf,.kl blank desktop wallpaper gentoo unmerging gam_server iam8up.com
#linux dandesousa #css plain.ev1servers.net #perl #fluxbox
|
|