| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> suppaman: A couple ways... some more successful than others <1> cynic: ah thank you <2> i.e. day between 1-31 or 1-30 or 1-28 for february except when it's 29 <3> the force is strong in this one... <2> Pollita: the easiest one according to you ? <0> suppaman: The most basic would be a set of if statements coupled with some date() magic to determine the number of days in a given month <2> isn't there a function in php doing this ? <4> suppaman: Well, that depends. It could be a valid date, but not what the user intended due to ambiguity.. :) <0> suppaman: Not, strictly speaking, no. <2> mattmcc: what do you mean ? <4> suppaman: Anyway, check out PEAR's Date package, it has some useful bits. <5> Does anyone here know a good tutorial on how to accomplish like "Last logged in on Sunday" type dealies? Is that just a lot of crap with strtotime and date? <4> suppaman: Is 3-5-2006 March 5th or May 3rd? <2> mattmcc: I don't care what user mean <2> mattmcc: (I hate him)
<0> You can do: if ("$month-$day-$year" == date('n/j/Y', mktime(0,0,0,$month,$day,$year)) { ... } <4> Yeah, this job would be great if it weren't for the ****ing customers. <0> But that's got its own issues <2> mattmcc: I've got three separate inputs in my form each one with its label "day" "month" "year" <4> Ah. Well, that clears that up I suppose. <0> mattmcc: You heard about "Clerks II" right? <0> There are trailers and everything <4> Kevin Smith, doing a _sequel_? :P <0> shrug <0> What are the askewniverse films if not a series of sequels? <6> =| <6> can someone tell me how to make something echo somes ISP <4> Unrelated films with recurring characters. <0> mattmcc: :p <2> mattmcc: btw 3-5-2006 is obviously May the 3rd <2> ;-) <7> magewlf: print_r($_SERVER) gives you all of the information available to PHP <6> CryWolf: thanks <8> suppaman: the standard format for - seperated dates, is year-month-day, not day-month-year ... <8> suppaman: mostly because year-month-day will sort properly <9> close_to_debian: I usually debug using echo <6> how bout just ISP <0> Oh alright, if it'll get you to shut the hell up.... The question you're trying to ask is: "What is the most effective way to determine the ISP ***ociated with a given IP address?" <7> magewlf: choose what you want from $_SERVER <6> ok <0> The answer is: "There are two routes, one significantly uglier than the other." <2> AcidReign: ok thanks <0> (A) Use gethostbyaddr() to turn the ipaddress into a DNS name and infer the ISP's name from the result <2> I think mysql will do the check <2> thanks <2> bye <0> (B) Generate a WHOIS query to ARIN, RIPE, or whatever IP registry and look for the registrant's name. <0> Explaining how to do (B) is well beyond the scope of IRC. I suggest you refer to IETF RFCs on how to use the WHOIS registries <0> (A) is simpler than (B), but (B) will give more accurate results. <0> Oh, look at that, PEAR has a whois cl***.... <9> Pollita: I see you remember your smart*** juice this morning. Well done. <10> Pollita, ! :) <0> snerk.... Net_Whois is a VERY thin wrapper around fsockopen()/fwrite()/stream_get_contents() <0> Amazing how low the bar is for some cl***es <0> TML: You know me. I'm a lover. <0> ...and a fighter... <9> Pollita: You know, it'd be nice if phpinfo() could dig into the Apache request structure and tell us what AllowOverrides, etc. are in the current scope <0> What would you use that for? <0> Package installers maybe? <11> what kind of fighter :) <9> Most for proving to idiots that they are, indeed, idiots. <9> s/Most/Mostly/ <0> I imagine that scope is exposed somewhere.... I'll take a look around at some point <9> Pollita: Ran into a situation today where they had something like 35 <Directory> blocks in their site config that caused all sorts of overrides <0> hahaha <0> nice <9> And by "35 <Directory>", I mean all 35 covered the exact same directory <9> It's like each person who ever touched the file made their own block <9> ... <0> hooray for lack of standards! <10> TML: Utah is hot, right? <10> or am I getting it mixed up with AZ? <0> AZ is fairly warm
<0> I'd imagine UT is a bit nippy <0> Especially in the current season <9> Davey: Southern Utah is pretty much the same as AZ <9> In fact, more so. <0> Wait, there's more to UT than SLC? <12> How do I check if item $i exists in array $arr? <10> Pollita, LOL <0> if (isset($arr[$i])) { ... } <10> or array_key_exists() <10> but isset == better <0> pfft <0> array_key_exists is beyond overkill <0> gratuitous beyond measure <9> Davey: http://countrystudies.us/united-states/weather/utah/st-george.htm <9> That's where most of my accursed family lives <10> wow, thats quite a bit colder than here <10> its 79F right now <9> Well, you're pretty much in Cuba as far as *I'm* concerned. <10> of course, its going to get *really* sticky next week... starting on the day we're having our new A/C installed. <10> *sighs* <10> I need to find a list of the american constitution thingy <9> ? <12> Maybe I have expressed not very good... I have: <12> $arr = array("aaa", "bbb", "ccc"); $i = "aaa". <12> How do I check if $i exists in $arr <9> The "american constitution *thingy*"? <10> yes, thingy <10> I know the 5th, and the 2nd I think <9> Lousy brits <9> Oh, the Bill of Rights <10> yeah, that too <9> They're called Amendments, you git <10> pfft <10> http://www.law.cornell.edu/constitution/constitution.billofrights.html <--- ack, where is the condensed version? <9> I love how British news refers to the American War for Independence as "that kerfuffle over the colonies" <10> hahaha, no we don't <10> but we should. <13> radone, php.net/in_array <0> Should that worry me? <10> Pollita, you'll find out in April ;) <0> Especially as he's down there in redneckville? <10> crap, its March already :/ <12> fredb: thanks <10> only 1 month to finish my slides <10> best get writing Pollita, actually, don't then I won't be the worst ;) <10> Pollita, have you spoken before? <0> Davey: You're from one of those white-trash parts of England aren't you? <10> uh... no. <9> Davey: I saw it in a news broadcast. <0> Davey: Nope, I'm a public speaking virgin <14> hi <10> I grew up in a whitebread middle-cl*** town of ~100,000 people <0> scared to death <9> Davey: Is there one in particular you're looking for? I know them rather well. <10> Pollita, join the club :) <10> TML: I probably should just know them <10> I don't know the thing you guys say to the flag either, pledge of allegience? <0> Davey: It's gay <9> yeah <10> *that* I do need to know for my citizenship <10> Pollita, the pledge? <0> yeah <10> Pollita, being of that persuasion yourself, isn't that a good thing? :) <0> It's all about brainwashing little commie-haters <14> would it be possible to have a php script that reads infomation for xml files and then imports parts of it into a database? <9> Don't mind me, I'm simply slightly to the right of Rush Limbaugh <0> TML: I don't know where the hell I am.... <9> Pollita: I made my own name for it. "Ultra-conservative small government right-wing libertarian" <10> btw... I got good news <10> come March 13th, me and Susan have been together 2 years :D
Return to
#php or Go to some related
logs:
pcntl_fork() ubuntu #ubuntu nvicf mergedfb ubuntu autodetect #linux ubuntu dir veiw php TLS negotiation failure freejerk #suse #kde
|
|