| |
| |
| |
|
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
Comments:
<0> about everything <1> . . . <0> but maybe taking it a little too far... but still, funny at times :) <2> like this, $query = mysql_query(sprintf('SELECT DATE_FORMAT(date_start, \'%Y-&m\') FROM invoice')); <2> no you're an retard <1> i never used sprintf ;/ <3> fumdidum... <0> $str = "foo " . func() . "bar"; <4> Tranceric: I hate extremist. They are stoopid, shallow-minded, selfish. <0> actually, i'm not even sure what you're trying to do rightnow <5> http://www.google.com/romance/ <3> tws: full ack <0> nothing wrong with being extreme from time to time <5> April Fool's Google Style ;)
<5> http://www.google.com/romance/ <4> Tranceric: I also hate people who send `Private Message' without permission. <2> philip, wops typo.. it should be %Y-%m <3> philip: but not politically :) <0> :) <2> im trying to make the query SELECT DATE_FORMAT(date_start, '%Y-&m') FROM invoice <3> tws: again full ack.. i got his "hitler"-salute, too :( <2> but sprintf thinks %Y and %m are variables <2> and \%Y doesnt seem to work either <4> fumanchi: Heh? <6> What does PHP stand for? <0> rightnow: why are you even using sprintf? <2> cause its more secure, ofcourse <0> php.net/history <4> Solifugus: http://id.php.net/manual/en/introduction.php <0> rightnow: is this an april fools joke? :) <3> breakfast <1> lool http://www.google.com/romance/press.html <1> ;] <2> philip, nm <0> rightnow: not that i think you should use sprintf at all here, but, php.net/sprintf shows % as %% <2> philip, wee! thanks, it worked <0> google has the best april fools <2> i have incoming vars from GET and POST in that query (didnt post that), thats why i use sprintf <6> I don't like the name, "PHP".. Might they change it to something nicer? <7> Solifugus: Rumor is they're considering calling it Personal Homepage. <0> Solifugus: sure, for $600,000 you can change the name to anything you like for four years <0> rightnow: so what is sprintf doing for you? <0> something like mysql_real_escape_string() i can buy... <2> yeah <2> WHERE ie_id = %d <0> perhaps you make it int.. <0> ah, yes, :) <2> .... ', mysql_escape($_GET['ie_id'])) <4> Solifugus: They will change it soon. Send an e-mail to group@php.net and suggest them some name you consider good. Don't forget to mention that it is intended to help them to change the PHP name. <2> thats what sprintf doing for me <2> but i didnt include that part in the question <0> i tend to use intval() or (int) or is_numeric() <0> sprintf is too much like c :) <0> every year people email php.net webmaster about strange images showing in phpinfo() <0> and every year someone says that to ##php :) <8> i have a problem with $last=$nrrez/5... even if $nrrez is integer $last turns up into a float... why? <0> and every year people think of april fools with words like 'magic_quotes_gpc' and 'register_globals' :) <0> php.net/types <9> anyone playing with zend framework yet? <10> hey anyone know a php command to send a browser back to referring link? <4> sellout4him: header()? <10> for instance i have a forum with a php action that submits and processes said data. but i want it to bounce it back after the data is processed <10> form* <11> is there anything like print_r that i can use to store in a variable instead of printing it? <12> fires, storing data to file? <12> fires, searialize and unserialize <12> serialize <11> no, Ciantic... not storing data to a file <11> print_r displays information about a variable <12> fires, you can fetch it by ob <11> i want to store that information to work with, not just display it to the browser <13> hi all <12> fires, $var = print_r($variable, true); <11> awesome, thanks.
<12> fires, fyi also this works ob_start(); echo "blaa"; print_r($var); $variableToStore = ob_get_clean(); <9> the zend framework docs seem to be screwed as they call for you to use Zend_Controller_Front::run('path to controllers') to initialize the controller component. <9> However there is no run method in the Controll_Front cl*** at all <12> fires, and should be obivious, as almost every modern page uses ob_* many times <9> nor is there one inherited <9> has anyone played with this ? <13> hi have added to phpfi a simple script to explain the basic concept about comparison and casting <13> fires, you can fetch it by ob <13> <13> hi all <13> sorry <13> http://phpfi.com/110378 <11> okay <13> i have added a little comment to explain the question <14> hi.. done this all my life, but I'm clueless now.. Apache doesn't read /etc/php/php.ini, where as PHP CLI does, --with-config-file-path=/etc/php is what I got compiled it with.. any guesses/pointers, thanks! <14> err <14> just reading topic <13> i say that php interpreter cast the left operand to integer 0 because i have used a cast to integer on the <13> right operand, and a casting on a string to integer is evaluated to 0 <13> thus php execute a comparison like this if (0 == 0) { echo 'the value is equal' .... <13> it's right <12> april fools on topic, how nasty is that <14> I just ignored it :P <13> any advices about my question ? <13> i'm heretic ? <13> :) <14> wait <14> I'll tell you if you are in a sec <13> pardon <14> and the question is? <14> are you heretic? I can not say you are :) <13> eheh <13> no i want know i have understand the logic that use the interpreter <14> PHP? Logic in that? :) <13> i have explained that before <13> i have used a casting on right operand, then php cast to int 0 <14> yes, that ok <14> but in such cases, === is best used.. no logics :P <13> yes i know <15> is there a way to havea file redirect using ehader or any otehr means, after it is finished executing? <2> Can i change the name of a key in an array? <13> here there is a bif flame on that... <13> bif as big* <14> rightnow: copy to other key, remove old <2> oki, thanks! <13> thanks Kemurii <1> always use === ;] <14> they should switch == and === :P <13> yes i know when i need to use ===, but the question isn't that <14> damn apache <14> kioto: I rather don't go the path of PHP-Logics, skipping that :/ <1> http://uk2.php.net/manual/en/language.operators.comparison.php#61879 ;] <1> http://uk.php.net/manual/en/types.comparisons.php would be very useful to those using == <2> How can i convert $date = '2006-01-06' to, '200601' ? <14> rightnow: strftime(), then date(), or just parse it <2> Kemurii, i think i love you <4> rightnow: str_replace() and substr(). <14> rightnow: I'm not using PHP anymore, but I know stuff :P <2> :D <16> How do I run this SQL Query: SQL Syntax: DROP TABLE phpbb_words; (From php)? :) <2> tws, thank you too! <14> substr() first 6, remove - <14> betim: mysql_query("DROP TABLE phpbb_words"); # and pray your backups works :P <13> ok <13> thanks <16> thanks :D <17> can somebody help me on "how include a template in a template" ? <1> also, http://www.deformedweb.co.uk/php_variable_tests.php <14> jessy_: My hair is not your hair <1> :] <17> Kemurii, what it means ? <14> jessy_: wtf is template for you? :) <17> Kemurii, i'm using template.inc from PHPLib <14> yeah <17> and i want to make an "index.tpl" who will include between <body> and </body> another template
Return to
#php or Go to some related
logs:
xw4300 dapper sound #ldap #perl debian dvdbackup double layer #mysql vloopback + kubuntu ubuntu lucidatypewriter #lisp conky glib-2.0 ubuntu xine windows-all
|
|