| |
| |
| |
|
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
Comments:
<0> apache just says "requested operation failed" <0> win <1> hi, is it correct that sscanf doesnt work on floats? sscanf("12.34", "%f", $var) just outputs 'Warning: sscanf(): Bad scan conversion character "." in' here <0> welcome <2> Pyramide: perhaps read the manual <0> manual = GOD / whatever you believe in <1> aidan: did that <2> Pyramide: obviously you didn't <1> it says you can use the same format as printg <1> printf* <2> Pyramide: ... so read printf's manual page <0> i will leave you to get ideas i will be right back <1> omg <1> if you cant help you should be quiet <2> Pyramide: I AM helping you out <0> really?
<1> you arent <3> Pyramide: just as in idea, use a , instead of . <1> printf("%f", 12.34) works, it even prints "12,34" when using setlocale(de_DE). according to the manual that means sscanf("12,34", "%f", $var) should work the other way round <0> back <2> Pyramide; why are you even using sscanf for what? <2> that* <0> negative :) <1> because of de_DE and the , <2> de_DE doesn't change how a float is represented <1> or what would be the correct way to read numbers locale independent <1> argh <1> it DOES <3> :> <2> Pyramide: clearly you know everything already, why are you here? <0> no <1> try setlocale(LC_ALL, 'de_DE', 'german'); printf("%f", 12.34); and see how it prints "12,34" <4> how can i make a reference parameter to a function optional? <1> aidan: because I thought here would be people who know something that I've overlooked. but seems I'm wrong and here are just "look in the manual" trolls <2> Pyramide: Yeh, because the one person who answered you is representative of the other 457 people in the channel <0> yes, that's right <2> Pyramide: the one person did happen to write the manual he is currently referring you to <2> bas: in php4, you can not <2> Pyramide: I think I understand your problem now, let me have a look <2> my immediate impression is that sscanf is not locale aware <2> and neither is (float) as a cast <5> hello... how can I get the first element of an array if the keys are not set incrementally from 0 ? <0> wb Lion28Wrk ;) <5> thanx :) <5> do I have to use foreach and then brake it after first loop? <2> Lion28Wrk: array_pop / splice or such <6> ptlis: with your leg <7> is there any way I can track what php functions do? Like "imap_open()" ? See what it does.. and why it fails? Some debug module I should load? <8> If i'm getting the error, 'Fatal error: Call to a member function on a non-object in /var/www/html/thezone.php on line 277 <5> array_slice will do, thanx... have to try it forst <8> ' trying to run a query, what am i doing wrong? <5> first even <2> cheesecheese: you're using PEAR DB or something? <2> cheesecheese: you didn't check that the query returned a success <0> what would this mean Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\forum\db\mysql4.php on line 48 <2> mrtechguy: you have not installed mysql <2> mrtechguy: php.net/mysql <0> i have <8> aidan: how do i check that it returned a success? <0> it was working before i updated php <9> hi all - is there a way to get all the commands which are being executed printed in the browser - like a "set -x" in a bash script? <0> <all> hi ttf <2> mrtechguy: you have not installed mysql IN PHP <2> cheesecheese: how the **** do I know? what abstraction layer are you using? <0> nope <2> ttf: currently being executed? or executed in the script <8> aidan: No worries, i'll go back and read a few more tutes <9> aidan: executed in the scipt <2> cheesecheese: I've asked you twice now ... is it that hard to answer the question? <2> ttf: you can use debug_backtrace to get the calls in the stack, or zend debugger to print all the functions used <8> aidan: i don't know what you're talking about, quite simply. I'm only new to this PHP monster <2> ttf: you can use the tokenizer or php_comatinfo to get all the function names used <2> cheesecheese: then say that. You must be using a database abstraction layer, because PHP's DB functions are not objects. Anyway, you're right, keep following the tutorial <0> ok... I'll shut up then <2> mrtechguy: thank god <2> Pyramide: noone's awake at the moment, I'd file a bug report, it seems like that should work
<2> I didn't know printf was local aware <2> locale* <10> hello <0> oh, I've missed you Sweet_kate... <2> setlocale(LC_ALL, 'de_DE', 'german'); <2> $var = sprintf("%f", 12.34); sscanf($var, "%f", $a); <10> i m looking for a good, funny/beutiful forum <10> to be done <10> i wana do it <10> where can i find some mods <10> ? <6> each <6> line <6> is <6> not <6> sacred <0> why not, p0windah? <2> Sweet_kate: please don't use the enter key as punctuation, and this is not the right place to ask about such things <2> mrtechguy: you're heading swiftly towards a ban if you keep this crap up <10> p0windah: aidan sorry!! <10> aidan: where could i ask? <2> Sweet_kate: try google, this channel is for php programmers <2> not products <0> what's the problem? <10> mrtechguy: i wanna make a forum <10> funny <2> Sweet_kate ... <10> and beautiful <2> Pyramide: are you there? <0> wtf! <2> okay, I give up... Pyramide I suggest you file a bug report. I don't get any errors running the above code, but $a is 12 vs 12.34 .. I've searched the bugs db and didn't see anything similar <2> Pyramide: a temp fix would be str_replace the , with a . then cast to float <2> Pyramide: keep in mind, thousands seperators etc. <2> I'm going to bed <11> hey, anyone mind helping out a php/sql newbie? <0> wazzup? <11> $query = "SELECT title, company, location, date_listed, expiration, short_description, long_description FROM jobs ORDER BY id DESC LIMIT 10"; <11> that gives me an error, i can't see why <12> hi <13> what error ? <0> welcome <14> hi <11> says, mysql_fetch_array isn't correct <0> hi there :) <11> hang on ill get it specifically <14> $stream = ftp_connect("www.sos-sts.org"); <14> $ok = ftp_login($stream,"login","p***"); <14> ftp_put($stream,"./latex/".$fichier,'/www/temp/new/latex',FTP_BINARY); <14> ftp_put($stream,"./latex/".$fichier.'.png','/www/temp/new/latex',FTP_BINARY); <14> ftp_close($stream); <14> what's wrong here ? <11> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/gwmc/public_html/applications/gwmc_joblist (oxy)/view.php on line 13 <11> line 13 = while($r=mysql_fetch_array($result)) .. $result=$query.. query = ^^ above <13> change $result = mysql_query($query); to $result = mysql_query($query) or die(mysql_error()); and grab the error <14> the file has created but has a size of 0 <11> DepretioN - Unknown column 'id' in 'order clause' <13> There you go <11> Sorry, i don't understand what that means <13> you are ordering by id, but you havent selected it <13> add id to your select statement <13> select id,title <11> ahh okay <11> thanks heaps Depretion! :) <13> np <10> is there a free vbulletin version? <14> do you have an idea <15> Hi.. with PHP how can I read a bunch of text (in the php file) into a variable until an EOF.. ie basically I don't want to have to keep repeating the variable over and over like varilable .= "blah1"; <6> MattH: php.net <15> yes I looked around on there.. was hoping someone could point me at a page or something <16> Well <16> You could do a WHILE <16> if I understand your question correctly <6> MattH: maybe try searching for the keyword FILE <14> please i don't understand this issue , could you explain me what's wring ?
Return to
#php or Go to some related
logs:
mdot utf-8 #gentoo #kernel #debian windows perl -e 'print Ax100' edonkey died __division__ python snd_pcm_open_conf skype testing Naamah XI #perl
|
|