| |
| |
| |
|
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
Comments:
<0> Stormchaser: you like BASIC <1> in php i forget do variables have scope? <2> ok, how to check if its a valid number <0> and all its new variations <3> Wizz_Kidd: no. <4> IRCFrEAK, $string = (int)$string or $string = int_val($string) <0> why lol <2> thanks <5> IRCFrEAK: is_numeric <4> IRCFrEAK, is_numeric(), is_int(), etc <1> ie, if i have $x=2; in a loop then outside the loop i try to print out $x will it be 2? <3> Wizz_Kidd: Because it's a ****y language <0> i rather have basic then c++ <6> off to install new nvidia drivers! <0> its easier and less streeful to program in <3> Wizz_Kidd: That's your choice, not mine
<0> and in theend will get same result <3> not to mention slower and less powerful <7> hey, do i do $row[title] <8> GillaGal, wtf? i KNOW that is valid. try removing the comments, maybe your editor put a newline somewhere it shouldnt be <9> k <3> 'kay... Nap time <7> ****, do i do "$row[title]" or "$row['title'] <4> perry, second <4> $row['title'] <7> thanks <7> when do you omit the single quotes? <10> is it faster to access your global variables through $GLOBALS['blah'] or import like so: global $blah; <4> perry, if title was a constant... for example if you had define('title', 'something') <10> say you import once and use 3 times, or just use 3 times directly? <4> perry, otherwise, never <10> that is if blah is quite an extensive multiple depth ***ociative array that you only use certain values out of? <9> darklogic no luck <4> seather, run some benchmarks. my guess would be $GLOBALS['blah'] is faster, but thats just a guess <8> GillaGal, can you paste me the whole code you're working with and tell me what you want it to do? <9> ok <9> sec <4> seather, anyways, i would think there would be little to know difference <11> i tend to use global $config; or global $logger; for singleton-style objects i want to use, and $GLOBALS for anything else <12> anyoen here know a good easy-to-understand tutorial for SimpleXML? The php manual site isnt working for me <4> Slade, what dont you understand about it? <13> is there something messed up with the new version of php that it sends ****ed up headers? <12> im trying to copy their example to fit my needs <13> what would cause something to send Cache-Control:private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0 ? <12> my xml file consists of <element attribute1 atribute 2, etc> <12> ie: <4> $element->attribute('foo') <13> anyone? <12> instead of <books><book>My Book</book></books>, i have <books><book title="My Book"></book></books> <9> darklogic basically... I need to add if($page === true) { into <?php if ( !$page && ($id == 1 || $id == 2)): ?> <11> heh, i was just reading a survey about peoples preference between element-based and attribute-based schemas <14> how can i debug if mail() has been successful and what happened? <8> GillaGal, paste me ALL the code you're working with. i need to see what you're trying to do <13> anyone? anyone? anyone see this before? <8> and use pastebin.ca dont paste in channel <11> dust: /var/log/maillog on linux <15> darklogic: why do you use .ca? <8> uh, because. is there a reason not to? <15> darklogic: no, just currious why you do it - i dothe same thing <16> ispiked, an application calling header(); PHP doesn't add any unncessary headers <15> but for probably different reasons <9> darklogic That's it. :) <8> itrebal, i dunno. i just do. heh <4> Slade, http://pastebin.com/533198 <15> darklogic: ok <8> GillaGal, where are those variables coming from then? <12> mfonda, and i can substitute simplexml_load_String with load file, right? <4> Slade, yes <9> darklogic from my cms. <14> Xyphoid: there is no /var/log/maillog. the server uses qmail <12> thanks <8> GillaGal, <?php if ( !$page && ($id == 1 || $id == 2) && $page === true): ?> <8> how is that then <9> ok sec.. <17> Whoohoo finally got php in cli <17> note --with-ncurses is very important to get php to build cli mode <5> darklogic: in order for !page to be true -> $page must be false. it then in turn can not === true
<7> i found a function for converting dates from the mysql syntax to a date in words, but i need some help customizing it for my purposes, and also understanding how to use it. i have it pastebinned at http://perry.pastebin.com/533201, if anyone wants to look at it with me <8> oops <8> thanks lig <8> i guess i'm confused about the question <18> perry: convert_timestamp() <9> darklogic no errors... but nothing is displayed either. <18> perry: http://aidan.dotgeek.org/repos/v/function.convert_timestamp.php <8> yeah, nothin would be. see lig's comment <8> $page cannot be both true and false <5> GillaGal: I told you earlier it was a contridiction <9> MMmmm <10> mfonda: little difference yes, tested it now, using global $blah; is faster if you use it multiple times after that in the function, if you only use once in the function when you import, accessing by $GLOBALS['blah'] is faster <7> aidan`: then i use the unix timestamp to get the date in words? <12> mfonda: ok, using your example, how would i get attributes from the root tag? <18> perry: right, with date() <12> ie, having <books type="old books"><book name="MyBook></book></books> <4> Slade, $root['attr'] <7> aidan`: does it matter if it's a mysql date, not datetime? <12> Thank you SOO much <17> grrr anyone have any good ideas for disabling debug symbols being used in building php? <19> lig good luck. <20> what does the output of a mysql query mean in php that says this Resource id #13 <5> scud: you forgot the fetch the results <20> let me pastebin it real quick <20> http://pastebin.ca/39372 its the $view_result part <18> perry: sigh. please read the manual. date() in php accepts only a unix timestamp. convert_timestamp converts a mysql timestamp into a unix timestamp. You can also use mysql directly to format your timestamp. <5> scud: http://www.php.net/mysql - check out any of the various mysql_fetch_* functions <21> can anyone help me out? <20> why is that query any diff than the others i have like that? <21> having a problem with gettext for like 2 days <17> Epilog: not anyone but some. What's the problem? <7> i read the date() entry in the manual, but i didn't really comprehend the difference between converting a mysql date to a unix timestamp and converting a datetime to a timestamp <18> scud: it's not. You've done all the others with mysql_fetch_***oc too <5> scud: or just use a if($accum_result) type of thing to see if it worked <17> Epilog: I know nothing about gettext thanks. <18> perry: they are different formats. Don't worry about the differences, just use the function I gave you <21> gettext not translating some strings with (accents) <22> RewriteRule ^delete/blog/posting/(.*)/(.*)?$ index.php?cmd=delete&type=blog&token=posting&id=$1&confirm=$2 Array ( [cmd] => delete [type] => blog [token] => posting [id] => 1/go ) <22> why does that echo that? <18> as I said last time you asked, .* is greedy <22> why isn't id [id] => 1 [confirm] => go ? <22> how do you fix this? <18> ([^/]+) <17> how can I keep from building php with -g? <22> RewriteRule ^delete/blog/([^/]+)?$ ? <23> Remowylliams: Don't enable debug <18> tek: replace (.*) with ([^/]+) <17> TML: --disable-debug --without-debug does not keep -g from being used. <22> why is (.*) greedy? <18> tek: ... because it is <23> Remowylliams: Are you compiling directly from a php.net tarball? <7> aidan`: so just to be double-sure, your function can take a mysql date WITHOUT a time, and turn it into a unix timestamp? <17> TML: I got it from there yes. <18> perry: no. <17> this is php-5.1.2 <18> perry: It takes a mysql TIMESTAMP <22> Hmmweird, thanks <18> why is it weird? <22> (.*)'s greedy <23> Remowylliams: Something's wrong with your toolchain, then. Which version of libtool do you have installed? <18> why wouldn't it be greedy? <7> aidan`: i see. what other way would you suggest for me to take a mysql date and turn it into words? <17> TML: Probably all of them. <23> tek: * is greedy by its very definition <19> TML you know JS ? <18> think about what you've just written ... (.*) any character, 0 or more times... why would it not be greedy? <23> Remowylliams: "all of them"? That could number into the hundreds. <23> Jymmm: sure <18> perry: jesus man <22> no I get that that's not what's weird <19> TML pm? <23> Jymmm: sure <17> TML: libtool13 - 15 I think.
Return to
#php or Go to some related
logs:
#suse makerpms in suse 9.1 Netlimiter gentoo cannot connect to mythbackend #gaim #lisp configure soundcard debian #linux bson staging #perl
|
|