| |
| |
| |
|
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> ok <1> $date = date('y-m-d', strtotime($date)); <2> how can i access the single char of a string like in c string[n] ? <3> anyone have a proper email validation regex handy? <4> _Brandon_: substr( $string, $index, $count ) and $string[$index] <1> _Brandon_: $string{6} <2> thanks <4> {? really? <1> yep <4> oh <5> I'm getting random newlines in my html output from PHP, this ****s trying to track it down <4> Elviso: why? too many newlines at the end of include files? <5> tapo: none <0> Ok it worked! :D Thanks novata_peleona! :D Bye! :D <6> ROFL, one of my co-workers had a spider (yes, an insect) running around INSIDE his mac keyboard. <7> keyboard bug
<6> reports indicate he killed it with the 'v' key <5> lol Jymmm <6> he had to chase it around the home row a few times <6> I've seen it all now <1> Windows spiders require ctrl+alt+v <8> hi, i want to redirect users based on wheather they're from america/australia or europe. how would you do that? <9> caffinated: his pet? <10> $var[] is used to append to an existing array right? <11> yunien: look up geo locate, it's not easy, or not cheap <6> Stormchaser: aparently not, since he was very intent on killing it <1> yunien: Get an ip-to-country database such as http://ip-to-country.webhosting.info/node/view/6 <8> ok, thanks MarkL! <6> Stormchaser: I'm not sure how it survived that long, steve types at about 100 WPM <12> yunien: try Maxmind.com's GeoIP, there's a free version available. www.hostip.info has one implementation. <13> how can i create a session variable that is an array from a database? <8> okay.. i'll check them out <1> r4g31: $_SESSION['var'] = $thearray; ?? <4> DogWater: yes. just try it. <13> MarkL: how can i access one pice of that array after it is created? <10> tapo: ok I'm working inside of a foreach loop, and if i echo $arraystring in this foreach loop it echos 4 times (each time differently as expected, however if i simply change the word echo to $var[] = the array ends up only having the final "string" in it. <1> r4g31: $_SESSION['var']['arraykey'] <4> r4g31: like accessing a piece in any other array? <9> caffinated: o.O <13> MarkL: gotcha...thanks <10> tapo: thats why im confused <10> nevermind it could be because the array() to create the array is within the foreach() <4> DogWater: put code on pastebin.com :-)= <10> doh! <10> snicker <10> takes effort to be this stupid <14> is it possible to include wildcard characters when using str_replace? <1> no <1> preg_replace for that :o <14> ok thanks <7> Aw **** me... http://www.paymentsnews.com/2006/04/redspin_triple_.html <15> Jymmm - no, thanks <14> MarkL, and when using preg -- use * for all wildcards? <10> time to start sniffing the local branches <10> it will give my mountain biking hobby extra whee <1> johnm1019: Unfortunelty not, regex syntax isn't that simple ;) You'll need to read up on regular expressions first <14> MarkL, ok thanks <10> Dude, are you really surprised <10> banks, insurance companies, healthcare are the most insecure industries <10> as far as IT goes <10> oh, and any company who is trying to protect secrets, like intellectual property <9> yay for drawing comics from me \o/ <9> DogWater: That doesn't really matter, anyways... Since, even if you steal a secret and use/sell it, you'll be sued for the money, that you didn't even dremt of... <16> Crap, I forgot, how do you call a variable name where part of the name can be a variable? <10> Dude -- in china, you can buy cisco routers but they're called.. something different <16> eval? <15> noooooooooooooooooo <10> because someone stole the software and reverse engineered it <15> variable variable <10> they never found the guy <10> I'm sure whoever did it isnt sitting around regretting that decision <10> Im not saying I would do that because I'm all about free enterprise <10> Im just saying I think you have too much faith in the legal process/justice system <9> heh... I went "wardriving" (not really... Just powered up my palm with wifi scanner) and found like 150 access points in range of what... 5 miles or so... <10> hell man cup o' joe is a freebie <10> and you can drink a mocha whilst doing so <3> which is better when checking to see if a user submitted a blank field in a form... if ($foo == "") {} or if (!isset($foo)) {}
<3> or something else? <1> wrmachin3: I'd use if(empty <9> isset($_POST['foo']) <1> A blank field is set .. but empty <3> ah <9> er... whoops <3> is_empty? <1> if(empty($foo)){ ... } <9> then empty($_POST['foo']) <3> i've already grabbed it from the post <3> thanks <17> hey can someone take a look at this for me? http://dev.centresource.com/dbruns/test.html <17> <17> i'm trying to get those floating divs inside the 'border' of the containing parent div <17> oops.. wrong channel <9> actually -- the best would be if(isset($_POST['foo']) && trim($_POST['foo']) != '') { ... } <1> empty also return false if it's not set too though <1> i.e empty == isset + trim :o <9> MarkL: nope... " " != empy() <9> *empty <18> does anyone use eclipse for editing php? I found phpeclipse and it works pretty well, but I am looking for a good way to upload the folder structure in a project to a remote site. <9> elarson: #eclipse <1> Stormchaser: Ah yeah, i always forget that <9> :) <1> Stormchaser: And I hate how you can't do if(empty(trim($foo))) ... <9> ditto <9> I love the if string.strip().empty() : :) <19> Greetings. Future-proofing question. I know PHP 6 is going to do away with many legacy features. My understanding is that short-tags like <? are one of the things slated for PHP 6. Is that true? If so, are they also getting rid of <?= syntax? <9> Crell42: Those shouldn't be used in first place, anyways. <20> $list = mysql_fetch_array($result) | So when when mysql_fetch_array returns false, $list == false? <19> Stormchaser: <?= you mean? <9> Servo888: no... $list === false. <9> Crell42: yes. <19> My company is discussing coding standards currently. I'm trying to make sure we future-proof ourselves. :-) <20> Stormchaser, three of them? <9> Crell42: Use <?php <19> Why not, other than them being treated as short-tags in PHP4 and 5? <9> !+short tags <21> Short tags are <? or <%, and should never be used. They are scheduled for removal from PHP6, and are configuration dependant. Use <?php, period. <19> Stormchaser: I do. I'm trying to convince my coworkers to follow suit. :-) <17> elarson from Utah? <9> Crell42: Tell them, what php-bot told you <19> Right. I was just looking for confirmation on their removal, and whether or not <?= is getting a replacement or just going away. <9> Crell42: Replacement for that would be really silly... Don't use them. Period. <1> Crell42: Yeah, they are scheduled for removal <19> MarkL: OK, that's all I needed to know. <5> <?=''?> is getting removed too? :\ <9> yes <18> dbruns: not from utah <19> Elviso: That's what I've been trying to find out. :-) <5> I know, I just wanted to pout :P <22> hello <17> elarson, so you probably weren't at an eBay developers conference last year... <19> hehe. <23> has anyone got any idea of why a website does not work in IE and firefox but works perfect in opera?? <24> Hi guys! GD library is obviously installed, yet somehow gd_info does not give an error or any output - any suggestions as to why? <1> weedar: Using var_dump(gd_info()) ? <24> MarkL, yup <1> weedar: What does if(function_exists('gd_info')){ echo 'Yes'; } else { echo 'No'; } output? <23> the problem is that javascript does not work in Firefox but works in IE and link work in Firefox but not in IE <4> Cambridge13: some html errors ore strange javascript <4> -e <23> and javascript is enabled in all my browsers <23> the funny thing is that alla pages are validated and there are no errors at all <24> MarkL, "Yes" <24> I ***ume there is some setting in php.ini, but I can't seem to see it documented on php.net <1> weedar: GD has no config specific settings <23> it also used to work in Firefox but after some alterations in code it never worked again. That made me think that some errors cuse that problem. But all validators i have tried return no errors <1> weedar: There's no reason why var_dump(gd_info()) wouldn't work <7> http://www.promoinnovations.com/xray.htm <24> MarkL: :/ <1> weedar: Can you create a test page with just <?php var_dump(gd_info()); ?> in it and put it online somewhere? <24> MarkL, I tried it in IE instead of just FF and now it works =) <1> :o
Return to
#php or Go to some related
logs:
php code for yahoo email exists or not #math keypad as mouse xorg #linux Can't convert PSD mode to GIMP base imagetype OKWELL mythtv #suse fedora hwbrowser hal-device-manager module ABI major version doesn't match the server's version #oe
|
|