| |
| |
| |
|
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 34 35
Comments:
<0> Rivos: 1) you woud have to have your cl*** defined on ALL pages that start the session, 2) you object can't contain references, nor can it contain any Resource Identifiers (files, database connections, sockts, etc) <0> Rivos: generallly anything that makes objects usefull breaks in sessions <0> Rivos: and you just might as well store the name=>value pairs you're left with as a native array. <1> Thaks acid <2> bleh...i feel sick <2> s/is/looks/ <3> TML : I tried with my data and var_dump ALWAYS shows the keys "000" or "001" as ["001"] or ["000"] <4> Hey guys, I'm struggling here. I have a MYSQL timestamp field and I basically want to write some php script to make sure the CURRENT time is greater than the TIMESTAMP field I'm pulling out of the database by at least 15 minutes. Any suggestions? <5> itrebal: Maybe you're just Orion. <5> Wait, Orion males aren't green. <6> wimpies, we've found that if it begins with a 0, it gets quoted. <6> If it begins with a 1-9, it probably won't. <7> anybody using any PHP framework? <3> TML : correct I have also code "999" and that is printed as [999]
<8> ceeto: is the database server on the same machinge? <2> lol <4> Yes. <9> wimpies: Yes, as Julian|Work and I just pointed out, it only works with leading zeros <3> TML : this does not sound all that consistent <9> wimpies: So 0999 would work, 999 would not. <8> ceeto: thats odd <3> perhaps because the 0 makes Php think it is octal ? <4> What's odd? <6> TML, does it have something to do with how PHP does silent type conversion? <6> I thought leading zeros are truncated most other places. <8> ceeto: Just wonder why there's a 15 minute difference. Doesn't sound normal. <2> toodles: re-read the question <6> Maybe the combination of that type conversion and the ability to use a string or integer as an array key produces the effect. <8> itrebal: oops <8> itrebal: grr. hate when i missread things <2> toodles: i know <10> hi guys, I may be having a mental blank, but how can I work out someones age from their date of birth using PHP? <10> I cant think :| <2> $birthyear - date('Y'); ? <2> errr... reverse them, <10> itrebal: that will get it wrong though surely if it's already p***ed in the current year <10> or would it be if it hasnt p***ed yet <10> as I say, I'm in a complete mental block <11> get time of birth in seconds, get time of now in seconds, subtract, convert to whatever <12> anyone knows about a good form handling cl***? one that doesnt build the form is best though <13> is there a way to count the amount of times the while loop occurs? <14> if i print (to an error log) a string and see lots of \xb1\xc3 stuff, is that utf8 encoded <15> b34st: increment an integer <2> $i = 0 while(true){//run $i++;} echo $i; <15> i'm just lazy today :p <13> oh yea i remember that thanks <2> Akuma_: HTML_QuickForm doesnt display a for if you dont want it to <16> dcorson: i'm not sure, but i doubt that's utf-8 <17> hello <17> does anyone nkow how to use the foreach <17> command <17> with an sql query <18> what? <18> Use while() <17> hi stormchaser <12> really? i didnt read try it out yet. i'll do that then. thanks itrebal <17> can i pastebin to show wat i mean <18> shadow`: You *should* <17> hi stormchaser <19> itrebal: feeling generous? Then reimburse me for the acetone; the stuff does get manufactured in a refinery you know! <2> "(8:11:06 PM) ***itrebal was feeling generous" <u>was</u> <17> http://rafb.net/paste/results/z4nWXS55.html <17> can anyone show me how to use the foreach <2> foreach($key as $c){ echo $c; } <2> er... s/key/array/ <19> sharmaa: The manual and user comments can. <17> the thing is i have an array with regex ranges <17> a-bA-B upto w-zW-Z <17> and i make an sql query to see if the dog name is in that specific range <17> $query = "select name from dog where name REGEXP '[${ranges}]'"; <17> and then how would i say if it is in that specific range <17> create a button with that range to press on
<17> using the foreach statement <2> how does a template engine *completly* remove presentation from logical? <17> http://rafb.net/paste/results/z4nWXS55.html <17> can anyone show me how to do that <2> i've tried getting that completly seperated, but its been a failure <16> itrebal: umm... xslt? <17> hello can somebody show me how i would do that <16> sharmaa: i don't get what your regex does <17> the ranges thing is all dogs with names that start from a-b <17> and c-d etc updo w-z <17> thats the $ranges <17> then i select all dog names which are in that range <15> thats the equiv of a-z then... <15> it makes no sense <17> the thing is <16> yes, i agree with jiggster <17> i want ranges from a-b <17> c-d <17> e-f <16> you mean to page it? <15> i understand that part :P <17> if a dog is not in one of those ranges <15> trying to do it all in one query... isnt very possible <17> then i do not make a label <17> if the dog is in one of those ranges then i make a label <2> deadroot: example? <10> will month/day/year work in strtotime()? <10> ie <17> do you nkow how i would do that jiggster <10> 10/17/1983 <16> itrebal: i don't have one. i haven't done any xslt work myself, because i don't see the point of server side xslt processing (which is the only reliable xslt method at this time) <20> itrebal: a template engine by itself won't separate presentation from content <16> sharmaa: wait, you want to extract all the dogs names and then group them into [a-b], [c-d], [e-f], ... ? <2> ok, in that case - i'd like to step up my coding practices, by completly seperating presentational from logic <20> but a CMS can help with that <2> but i'm not sure where to start <17> i want to check if there are dogs which are in the rage [a-b] or [c-d] <17> etc <17> if a dog is in that range <17> i want to create a radio button with the label dog is in range [a-b] <16> itrebal: i don't think it's possible, unless you're a mathmatician <17> if the dog is not in that range <20> with a CMS, you have to step away from the idea of a 'web page' <17> i dont want to make a radio button <16> there would always be some level of integration of presentation and logic <2> meh, ok <20> itrebal, mind me PMing you? <2> not at all <21> anyone have php totally hang when calling OCIParse()? totally cant use oracle sometimes. <17> do you know how i could do that deadroot <16> sharmaa: your existing code, if it is valid, would most probably select [a-zA-Z] <22> hi there i wanna know which tool u use to modelize php developement before writing a single line ofcode <17> could i do something like <17> foreach($ranges as $range($dog, MYSQL_***OC) <16> sharmaa: i still haven't gotten the full picture of what you want, but i think that you either do multiple queries with different ranges, or you retrieve all the names and group them in the php side <16> sharmaa: no. because mysql_fetch_* aren't arrays <17> hm <16> ... and that paste doesn't really make much sense <17> yea the foreach <17> ignore that part <17> i wanst sure how to do it <17> while ($row = mysql_fetch_array($dog, MYSQL_***OC)){ <17> print $range; <17> <17> i want to check <17> basically <17> if the query returns true <17> i.e. if there is a dog in the range [a-b] <17> then i want to make a label with the title there is a dog in the range [a-b] <17> how would i do that deadrot <14> hrmm is there any way to find out what encoding error_log() would print as a bunch of \xc2\xb1 stuff <16> the simplest way to do that is to "select * from dogs where name regexp 'a-bA-B';" <17> ok <17> but then i would have to do so many range
Return to
#php or Go to some related
logs:
tftp cannot set groups for user nobody ubuntu LUELinks registration gento xorg 7 torrentflux.deb both webcam and tv-card linux udev dell1300 driver gentoo epcam #perl #javascript phpmyadmin File could not be read
|
|