| |
| |
| |
|
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
Comments:
<0> depends how well you know it, I suppose <1> but at the same time, i wouldn't want to write a whole web app from scratch blindly.. <1> yea :) <0> have you looked at Django? It seemed quite nice when I was playing about with it <1> i **** at ruby though, all of the interfaces are poorly documented and unlike most languages.. <1> hm <1> that's another MVC framework right? <1> don't much like mvc.. <1> i find models a little cumbersome ;) <2> i need to work on my stuff... <3> I have libxml installed, but my installation of php is complaining about it <2> how about libxml2? <2> and the -dev stuff <3> onfigure: error: xml2-config not found. Please check your libxml2 installation <3> Yeah, libxml2 is installed.. <2> -dev?
<3> Yep <2> odd <3> gonna rebuild my libxml2 install and see if that helps <4> my PDO wont work <5> That's nice... <4> no its not <5> No, it's not. <5> Alrighty. <6> Do defines work in heredoc? <4> not to worry, sorted it <7> Solara- you mean constants? <6> yea <8> hey all <8> i'm finally able to get in! <8> not ##overflow <9> is this grammatically correct?: md5(md5($_SERVER[PHP_AUTH_PW]) . $salt); <8> anyways, does anyone know where I can find a chr() map? <9> *grammatically = morally <10> why two md5's? <9> myconid: that's what i was asking myself when i analyzed the code <7> Solara- you can try {CONST}, but I'm not certain if it works or not <6> Dragnslcr doesn't work <7> Fushuing- quote the string key <9> string...key? ... <7> $_SERVER[PHP_AUTH_PW] <11> hello <9> <-- not natively english <7> Should be $_SERVER['PHP_AUTH_PW'] <9> ...oops <9> but it's a constant, so it shouldn't really matter...right? <11> im trying to make a template, where certain repeated info i can just include in different sections <12> i need some help. <7> It isn't a constant though <11> how do i go about echoing the contents of a separate php file <7> computersolution- echo file_get_contents("somefile.txt"); <11> dragn, thanks <11> does it have to be a txt? <11> or can it be a php? <7> Nope, can be anything <9> oh well, it SHOULD work without the quotes <11> k thanks alot <9> and with the quotes, it still doesn't work :/ <7> Fushuing- no it shouldn't <13> is there a PHP command for saving changes to a MySQL database? if there is I can't find it <12> http://alija.gusinje.net/~gusinje/kviz/rezultati < all i want is to take the 236 - non-plus , 229 - Bosanac <7> Fushuing- turn on error_reporting and you'll see the error for the undefined constant <12> how is that possible? <9> Dragnslcr: obtaining the error will be a bit difficult...heh... <14> macgeek do you knwo what mysql is <14> and php <14> and how mysql commands work <13> yes <14> are you sure? <10> macgeek: are you using an ORM library? <13> I'm trying to update a record, and in #mysql they said I need to save <7> macgeek- you need an update query <10> macgeek: google sql update <14> update table set col1 = 'val1', col2 = 'val2'; <9> and...it produces no errors?! <15> hi hi <13> Dragnslcr: I have an update query: UPDATE downloads SET downloads = '%i' WHERE product = '%s' LIMIT 1
<14> you mean $i ? <7> macgeek- okay, and did you execute it? <13> johnb` this is with sprintf(); <13> Dragnslcr: yes... <14> oh ok <13> here's meh source: http://farhnware.homelinux.com/software/index.txt <7> macgeek- and did you check mysql_affected_rows to see how many rows were changed? <13> no... <7> If there are no rows matching your where clause, no rows will get updated <13> but I know there's a row for that, because I access the same row above <15> how can i concatenate two variables into mysql query ? <9> Unable to add cookies, header already sent. <-- there are some things i hate... <7> CeChe- same way you do any other string <13> CeChe: sprintf() works good <7> Fushuing- you can't use setcookie after you send output <9> i didn't use setcookie >.< <7> Eh, I'll never understand why people use sprintf <15> dont work for me '$i.$y' <7> PHP has a real concatenation operator <10> Dragnslcr: what do you do instead? <13> Dragnslcr: I use . also <7> Well, I use PDO and named placeholders anyway <7> For database stuff <10> Dragnslcr: $a = 2; .. echo that as '2.00' w/o sprintf <13> Dragnslcr: sprintf(); makes queries easier to read for me <7> myconid- round or number_format <14> http://www.phpro.org/ <14> erm <14> $query2 = sprintf("UPDATE downloads SET downloads = '%i' WHERE product = '%s' LIMIT 1",$dlc,mysql_real_escape_string($pid)); <16> How do I put a string of characters in all caps? <7> http://www.php.net/strtoupper <14> whats the advantage of that over $query2 = mysql_query("query"); ?? <15> VALUES ('$id', '$zona_new.$i', '$ip_new.$i')"); dont work :( <16> Dragnslcr: thanks <9> johnb`: i actually discourage the former, :S <9> but then again, i'm a noob on PHP :) <7> johnb`- basically just having it in a variable that you can echo afterwards if you need to <14> ahh i see <14> thanks <12> $file = file_get_contents("/home/gusinje/public_html/kviz/rezultati", "r"); <12> $string = $file; <14> they ripped off C there :/ <12> is this possible to do ? <7> Functionally there's no real difference <9> Dragnslcr: what about injection? <7> Alija_- sure <12> why does it say; http://alija.gusinje.net/~gusinje/kviz/users.php <7> Fushuing- like I said, I use PDO for database stuff, so bindValue/bindParam handles escaping and quoting <9> k <12> my bad <12> its ok now <7> Before that, I usually had stuff like $foo = mysql_real_escape_string($foo); <14> you should be able to just do <7> I just find printf harder to read, because you have to jump to the end of the line to see what each %x means <14> mysql_qarray("query"); <14> and it would just automatically grab an array from that query <7> Personal preference though <14> as a prebuilt function, though <13> yeah, no rows are getting updated. I have no clue why <10> I bet i know why. <13> why <10> bad sql <9> http://pastebin.com/590094 <-- it doesn't even gets past the !isset <13> myconid: what do you mean <10> Fushuing: is there an error? <7> Fushuing- which part is executing? <9> i can't see any :/ <9> Dragnslcr: for as far as i can see, only the first if(!isset <9> even if i gave it an username <7> Well, either the true block or false block has to be run <7> It can't skip them both <9> # <9> if (!isset($_SERVER['PHP_AUTH_USER'])) { <9> it goes through that, even when a username is specified
Return to
#php or Go to some related
logs:
ouroborosx OSX #gentoo MYSQL where YEAR_MONTH
#linuxhelp (temporary failure. Command output: couldn't connect to lmtpd: No such file or d #bash #kde #perl #qemu libphp5.c
|
|