| |
| |
| |
|
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
Comments:
<0> Ahroun: i need this before i send body.. so i can modify headers <0> but dunno if i can cancel one. <1> I have a question. Is there a simple way that I can append a jscript snippet at the end of all .php|ht?l files without modifying every single page? <1> I'm looking at putting the jscript snippet at the end of each </body> tag <2> zimnyx: no, you can't cancel a header. lra_ might be right about being able to override one though. Why in the word are you sending a header you're going to cancel though? <3> looks like this doesn remove white space: '@([\r\n])[\s]+@' <3> should I just use \S ? <4> hey, is money_format(); broken? money_format('%+#2.2i',$row[4]) and it still display (#2.2i) .. I want -#2.2i <0> Ahroun: whole system using nocache as session_cache_limiter, but there is a but in IE which can be fixed only be changing it to cacheable. i'd like to use session_cache_limiter('') but it can;t be called again after session_start() was called. So only way is to menualy set header('Cache-control: ....') to overrride already set nocache header.. <2> zimnyx: Sounds fishy to me in the sense that it sounds like you should be approaching it differently. Precisely how I can't really say, and unfortunately I need to get ready to head home from work. <5> how would you get 2 mondays ago using strtotime? <0> Ahroun: sure.. it's easy, i just need to call session_start() a bit later:) <0> Ahroun: but i got dozen of cl***es here, i need to talk about it with other guy. <1> nater, 2 weeks = 1,209,600 seconds <6> !+60*60*24*14 <7> 1209600
<6> php-bot botsnack <7> Jymmm: :) <1> I just said that ;) <2> zimnyx: Heh. Then I really can't help ya'. I hate the use of cl***es with a p***ion. ;) Anyways, good luck to you guy. I'm out. <5> fenix: the reason i'm asking is i've run across some code using strtotime("last Monday") and it for some reason works... <8> 86,400 seconds in a day, good to remember, then you just have to multiply by number of days. :) <1> nater, that's cus it's a part of strtotime <9> of course, there are 2 days a year where that's not entirely true. <1> you could also use strototime(-2 weeks) <6> FenixRF and your point is? <1> that I'm not as fancy as you <9> ...in some parts of the world. <10> Ahroun, it didn't work with the stream functions, but there are ncurses-bindings for PHP that works great <4> money_format(); is BROKEN <11> no, your CPU is BROKEN. <4> test it by yourself: echo money_format('%=*+#10.2n','-5.36'); <4> it's supposed to give -*********5.36 but it's giving (*********5.36) <1> nexact-, that's cus money_format encloses negative values in ( ) <1> which is the way the financial world defines negative values in accounting <12> FenixRF: not according to the manual, you have to explicitely ask for () <4> FenixRF, yes but I've supplied + in the format, it's not supposed to encloses it in ( ) <12> "If ( is used, negative amounts are enclosed in parenthesis. If no specification is given, the default is +." <4> even if I don't supply it, it's enclose it <4> GarethAdams, you think it's a bug ? <1> nexact-, I took your code just as you typed it <12> The function says locale settings affect it, but that's only the currency symbol <1> http://cleanup.rdfleming.com/test.php <11> nexact: Which PHP version? <4> my phpinfo(); http://nexact.mindkind.org/test.php <4> 5.1.2 <4> FenixRF, what I typed: http://nexact.mindkind.org/test2.php <1> I'm using PHP 4 <11> 5.0.5 works fine <4> rhmm weird. <11> nexact: Type it in your CLI <13> Using PHPUnit2 v. 2.3.5, I have the same issue as in PEAR::Bug #5053. The bug is listed as fixed. Do I still need the CVS version of PHPUnit2, or should I open another bug report? <11> snoyes: We don't support phpunnit nor #pear <11> !+pear <7> [PEAR] PHP Extension and Application Repository, a framework and distribution system for reusable PHP components. ##PHP does not support PEAR, please see http://pear.php.net/support.php. <13> thanks, I'll try #pear. <1> test.rdfleming.com :: PHP 5.1.2 <1> err test.rdfleming.com/test.php <1> shows -**********5.36 <14> how can i auto fill a select box with date and select the current date (then another select one for months) <1> default="<? date(?) ?>" <1> something like that <11> Aaaargh! <1> no... value= <11> !+short tags <7> Short tags are <? or <%, and should never be used. They are scheduled for removal from PHP6, and are configuration dependant. Use <?php, period. <1> Stormchaser, that is my bad... I never use short tags... <14> FenixRF: must need a loop to loop around the avaiulable dates / months <15> Hey, i fell asleep last night before i could get an answer <15> PHP is yelling at me about a file called lex <1> Andy298, create yourself an array <15> any idea what to do? <1> then loop that array <1> when filling in your values <4> Stormchaser, I've just typed it and it output exactly the same thing <4> (*********5.36) <4> (in my CLI)
<8> Any cURL savvy folks here? Specifically, i am trying to perform multiple execs in one 'session', success with that? (php 5.1.2) <16> why can I get this error ? i do not get it ? "Warning Error: (array_search(): Wrong datatype for second argument) in file siteMain.php on line 81" ? my Array is $theSite['url']['file'][0]; ? <4> I havent tried that but cURL is really nice :) <11> kennebel: Can you try that nexact's command? echo money_format('%=*+#10.2n','-5.36'); in your CLI. We're pondering if it's a bug or not. <8> Stormchaser: Sure. <17> Questutis: maybe you p***ed it the wrong data type for the second argument ? <16> AcidReign: how to understan wronf datatype ? <16> it is an array with values :/ <17> !+func array_search <7> mixed array_search(mixed needle, array haystack [, bool strict]): Searches the array for a given value and returns the corresponding key if successful <11> Questutis: is it? Have you checked it? <17> Questutis: you need to p*** an array of strings or numbers as the second argument <16> print_r() gives - [0] => Array <16> ( <16> [0] => <16> [1] => main <16> [2] => about <16> ... <17> Do not flood. <16> sorry :( <11> *blink* <1> Hey, is there any way to append a snippet of jscript after the closing body tag, besides doing a sitewide search/replace? <17> Questutis: $ php -r "print_r( array_search( 'foo', array( 'bar','foo','baz' ) ) );" <17> 1 <8> Stormchaser: I cannot test it, apparently the function is undefined in WIndows, my linux box isn't up right now with php (have to reinstall) <17> FenixRF: auto_append_file ? <11> kennebel: money_format should NOT be platform-dependant. <4> I'll test it on my other boxes <17> FenixRF: it'll only work on files run through PHP <1> AcidReign, I was thinking that... but I'm not so sure where it'll append to... <16> yes AcidReign the function works, but I do not know why it gives this warning above. <17> kennebel: I'm sure apache has an option, most free hosts use that <17> FenixRF: the end <1> yeah... the end is too far :) <1> needs to be between </body> and </html> <17> FenixRF: well than you have to insert it yourself <17> or do some complicated trickery that is not guaranteed to work <18> Erm. Nothing should be between </body> and </html>. <17> then there's that <1> yeah... I have over a thousand pages to change (easy with search/replace) ... but the code won't be in any new pages <8> Stormchaser: http://us3.php.net/manual/en/function.money-format.php Read the "note" section. <1> mattmcc, tell Google Analytics that <18> FenixRF: Google isn't known for its markup validity interests. <1> yeah. corporate wants google analytics... google wants their jscript immediately following </body> <18> That's a shame. <13> we put the google analytics jscript just before the </body>. Seems to work fine. <8> Stormchaser: http://kennebel.com/mon_test.php (on linux/apache/php 5.0.4) <8> -*********5.36 <4> Stormchaser, I've just tested it on 5.0.5 it work fine too. <19> Hello <19> Is it likely that the <?= -short-tag will be deprecated/removed? <19> <? should be and <?php should be used more... But <?= is very handy. <1> ah well <1> thanks <1> gotta go <1> night all <4> Stormchaser, It seems the problem is only happening on my FreeBSD 5.4... should I report it ? <3> is this valid expression ?$image_name='@gallery_([0-9]).png@; <3> $img=preg_match($image_name,$template) <3> it looks in <img src="/***ets/gallery_5.png" <20> which do you prefer $_ENV or getenv() <20> as for myself, i find that $_ENV is spotty and doesn't actually fetch the environment on some systems. <21> walrusnip: I've had the same experience <8> Well, that's a work day for me. ttyl <22> okay yall I have a stupid question, I want to insert html code inside of a text area box, how would I do that? <22> like <text area> html code </textarea> <20> Pooky: thank goodness. i though i was going CRAZY! <21> walrusnip: I used to check for the user running the script using the env variables, now I have to do $processUser = posix_getpwuid(posix_geteuid()); <17> S^Gerbitz: Err... you mean, you want to have formatting in a textarea? You can't. <20> Pooky: the env user would be the one who started apache though. <21> walrusnip: I have some php shell scripts :) <21> walrusnip: for table maintenance and such <22> AcidReign - I mean like I want to show html code inside of a text area box. like this <text area> <img src="pic"> </textarea> <22> like that
Return to
#php or Go to some related
logs:
os written in php #python mdadm mk2fs ubunto activate root account #web openfiler livecd postfix/smtp problem talking to service rewrite #python #ati makesusedvd windows
|
|