| |
| |
| |
|
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> wastes too much metal imo <1> can anyone help me with this error? http://www.balboaink.com/lb/ I dont have the dir /usr/share/php or /usr/share/pear? <0> left with too many bits of scrap <2> jiggster: like in old bugs bunny cartoons when they carve a bowling pin out of an entire tree? <0> yeah lol <3> lol <3> I JUST saw how they make toothpicks and match sticks - amazing <2> Jymmm: oh yeah? you went to the factory? <3> dools Discovery Channel =) <0> Jymmm yeah i saw that too friggin amazing eh <2> Jymmm: ahh, nice <3> Well, Discovery/Food/Travel Channels <3> I've ALWASY wondered how they did that all my life... casue you know they aint gonna waste all that wood. <0> for sure <2> do they flatten the logs out somehow?
<0> unravel them basicaly <3> The bark is beaten off 24" long logs, then it's veneered <2> oh like, shave them down in a spiral? <0> yeah <2> hehe that's pretty awesome <3> dools like a apple peeler - all the way to the core <2> i would love to see it done :-) <4> scrape it like an apple peeler girl <4> thats a new song <3> then a guilten style chopped into sticks <5> my forum uses timestamps to keep track of things like when a user adds a post etc.. how should I properly store these timestamps in the database? right now I am storing them in a timestamp int(15).. <6> that's fine <5> k <5> ty <7> if i have an html tempalte with a $body var, how would i do something like this: <0> 15 will let you use that forum into the year 2500+ :P <5> hehe <7> $body = "body content"; $output = require_once(template.php); file_put_contents("index.html"); <3> jiggster or record TZ using hte alpha codes <7> that $output = require.... isn't valid right? <2> cyphor: i've got back to using actual dates <5> what do you mean dools? <5> like human-readable? <0> alpha codes w00t <2> cyphor: like, i switched to storing all dates as timestamps, but then i switched back... yeah, human readable, plus it differentiates it from other int() types in the table more readily... means you can do things like parse the result of a DESCRIBE query <3> timestamp is human readable 20060312050000 <2> Jymmm: i think he means unix timestamp <3> epoch <2> yah <2> i've gone off it <0> yeah epoch ****s for anything pre '65 or whatever it was <6> substr is your friend <0> 75? i forget! <6> just use substr and pull out whatever you need <5> yea, I have been using the time() function <3> doesnt work for history <3> geneology, etc <5> Ira_, why use the $output var anyway? <2> cyphor: i'd steer clear of it... it's easy enough to use UNIX_TIMESTAMP if you want epoch returned from a db query, plus the date manipulation in php is pretty infallible <0> haha, i saw one guy come in and say "date and time functions in php ****!" - couldnt have been more off <0> they're decent, imo <0> in fact, quite nice <2> i've never been caught short <5> hrm <0> i go to other languages, and feel like i cant work with time properly :P <3> yin yang <-> Positive of shadow <3> what gpl? <2> qt or something... you need the commercial license if you are using it commercially <3> ah <2> qtfree license or something like that <0> so dont use it' "commercially" :p <2> i'll just write one and release it as open source under a BSD license <0> and i'm your new best friend <8> hi all <0> kuja: get out slacker!!! <9> dools: You mean QPL? <10> =O <0> kidding of course
<0> always welcome you are <10> :D <0> cause you have brains <2> Stormchaser: that sounds like it <0> delicious grey matter <3> Mmmmmmmmm brains.... Mmmmm MORE BRAINS!!!!!!!!!!!!!! <3> Name that movie! <0> i'ma make a sign, "spare axons? i need some beer, spare axons?" <0> night of the living dead <3> BINGO! <0> i dunno those movies tbh <8> I just made a while where I put a hidden field in with the name $cat_id[0] which is given from the query <0> just a wild guess <8> but whenver I use the submit button <8> the categorie ids aren't 1,2, 3 and 4 <8> but are 4, 4, 4 and 4 <11> Hey all <8> what could be the problem? <11> everything ok here <0> sounds like a malfunctioning loop? if you have a loop <3> drop the 0 <2> olger901: missing [] <2> ? <0> yeah 0 could be a prob <0> spot on Jymmm <3> drop the 0 $cat_id[] <8> well the problem is that the 0 specifies the row <8> it fetches from the database. <2> yeah, or alternatively $cat_id[0][] ... depending on what you need <2> <input type="hidden" name="cat_id[0][]" value="myval" / <2> > <8> nevermind fixed it :) <8> instead of doing an indirect post <11> does anyone know how to use wildcards in php? <8> i submitted the thing directly <11> can it be done with str_replace? <11> or preg_match <11> sorry.. preg_replace <2> markg85: what for? <11> i want to replace spaces with any character <9> str_replace <11> for example this: i search for starship troopers.. and i get this file from the db: STRASHIP_TROOPERS_blaaaa.jpg <8> ohoh <8> now I hope I don't run into any problems with the checkboxes :p <11> now it won`t find the file bacause of the space.. <10> markg85: Depends where you're searching from. If you're using a RDBMS, you should be using its features. <3> WTh... joy and JOY are different. <3> err s/JOY/Joy/ <11> in mysql it`s easy.. it`s a simple replace of the spaces with % <2> markg85: glob() <11> but it`s not that simple in php itself... <11> glob() :S <12> Hi Guys! I need a good idea: I use a global method to get db-connection pointer into cl***es, I move the to a private member variable in each cl***. problem: whenever var_dump()ing a cl*** I get a lot of DB stuff. <0> *snickers at 'glob'* <10> If you're working with an array, consider preg_grep(), markg85. <2> you're a juvenile <0> i know <11> yea oke.. but what are the wildcard codes..?? i can`t find a list of it anywhere <0> oh joy :\ <0> now whos being childish <10> markg85: Learn the syntax. php.net/pcre.pattern.syntax <0> s/childish/juvenile <11> thanx i will take a look at that now :) <5> my php forum has a table in the db called 'forum', and the forum table has a field called lastpost, which is a varchar field... I have been storing in the lastpost values like '21-208-13-2', the meanings are topic id, post id, page number, user id... Does this seem reasonable or? <10> cyphor: No. That is an example of poor DB design. <12> :-) <5> yea, I figured, heh ! <10> Use separate fields. <13> cyphor: like I was saying earlier... data management :) <11> hmm the link: php.net/pcre.pattern.syntax doesn`t work... <12> or get the additional data using the 208 entry from the other tables. <10> Don't store them as a single value, or else you're defeating the 'relational' in 'relational database management system' <14> smelly kuja
Return to
#php or Go to some related
logs:
#suse bitchx toggle timestamp remove agpgart toughbook CF28 manual mtunes gcc gentoo iostat emerge apt-get install abs-guide libsound2 mdraid raid 5 $howto #osdev
|
|