| |
| |
| |
|
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
Comments:
<0> volcom: on submitting the login form, you check to see if username and p***word are correct. <0> volcom: speaking of which, I hope you're using POST for that form. <1> yea, thats what im trying to do. <1> yea post <2> hello <1> so why do i have to put $loggedin in the function, if it is in a session? <0> volcom: That's what I'm trying to say. It doesn't belong there. You check it *before* you call the function. <1> ah. Well I think I am running into a bunch of problems trying to put the login checking into a function. I think I may be better off sticking it directly in the login page? <0> I think I just said that. <1> :P sorry takes me a while. Well thanks, gonna go fix this <0> volcom: also, another problem with your function... <0> get rid of $p***word = mysql_escape_string($p***word). It's not necessary, since you md5 it later, and if it does escape it, your md5 will be wrong. <1> ah alright. But mysql_escape_string would be good on the registration, correct? <0> same thing applies then. <1> so, mysql_escape_string, is alright on everyting but the p***word? <0> volcom: it depends. but usually, yes.
<1> alright, thanks alot <3> here's a question...when i serialize an int, say 9999, it outputs a string that includes double-quotes...so how am I suppossed to put that into a sql query where double-quotes break out of the string? <4> escape them? <3> well, for example "UPDATE <table> SET contact_id = "<serialized"string">" <3> ***uming that contact_id is a varchar <3> or would you put a serialized array in something other than a varchar? <4> I would! ;p <5> enygma: Believe me -- You wouldn't :) <3> enygma....but how can I put escape characters into a serialized string? it <4> Stormchaser - mmmm....mind-numbing <3> it seems like the whole point of serializing an array is so that you can easily store it using a sql query string <5> enygma: yeah, I hate the idea alone, let alone the clicks :/ <6> mad_phoenix, or put it in a file, etc <5> ...or stuff it in your dishwasher... It will make your clothes all white and shiney... <4> yay <5> dammit... <3> right, but my point is that serialized returns a string containing double-quotes, so how could you reference that as a variable without either modifying it first or getting errors <5> It's 2 am and I'm stuck with more than 1350 clicks :/ <7> mad_phoenix: I dunno. Perhaps re-write it all in ASP. You know asp is the future. <7> :P <4> if you escape it when it goes in, remove the escaping when it comes out. <4> then interpret it. not that difficult. <5> or use mysql_real_escape_string and everybody will be happy <4> yay <5> (except enygma) :) <4> I'm never happy. <4> give me pudding, dammit <5> all out <5> this'd be cool ad for our CMS: "Your content rights are as simple as 25,000 clicks, but it's not... You just need 24,500 of them!" <5> </sanity> <5> "trip to nuthouse included!" <8> Mmmm... I'm all about the straightjackets yo. <4> fashion accessory <4> all the cool kids are wearin' em <8> err... yea.. fashion accessory... yea... <4> well, the cool kids around my 'hood, word <8> enygma: Are you the same enygma@phpdeveloper.org? <9> how do you echo the first 3 characters of a string? I know it's not this, but this is sort of what I mean: $foo="fluffy"; echo $foo[0-2]; something similar to that? <8> NickABusey: echo substr($str, 0, 3); <9> should return: flu <9> thanks <8> np <10> is there a way to print output of a shell command before the command has completed <4> think about what you just asked <10> no no hear me out <10> for instance if you do a popen and print every iteration of the loop it will print each line of the command <10> but if you decide that you want to do that in a web app it will ghettoize it and print the trash at the top <10> of the page <11> nixvada: I don't think 'ghettoize' is the exact technical term that best describes the situation. <11> Try again. <11> With example output, please. <10> lol <10> one sec <12> how do I get mysql running so I can use PHP? <12> and mysql together <13> php.net/install <11> Compile PHP with mysql support. <12> its pre-installed with arch linux <12> both PHP and mysql are installed, but mambo says mysql is not present
<12> anyone? <14> evenin kiddos <10> what is the url to paste files <10> past code <10> i figured it out. <10> c developer trying to use php <10> quicker to do it in c <10> semaphore <5> !+enter <15> Don't use the enter key as puncuation. Think in complete thoughts, then type. <10> hehe <10> mind works that way <16> s/cu/ctu/ <5> nixvada: My mind works like this: Stop it or else... <8> Ahhh.. but communication works my mutually agreed upon rules such as: grammar, punctuation, and spelling. <17> !f j0 54y s0. <17> ;) <8> See? It works. I know what to ignore. ;) <17> 19:48 <15> Try looking at http://php.net/j0 54y s0. <17> heh <17> how do you tell if you have pear installed? <17> would phpinfo() show it? <5> pear is a command <17> I thought pear was a lib? <17> guess not <8> Would I be correct in ***uming that project announcements are taboo in channel? <5> nathe: Well... GTK is a library as well, but there is libgtk-config program as well... <5> jonnay: not taboo, but guideline breakage. <18> what's the fastest hashing algorithm to use if I wanted to hash a SQL query (up to 1k in length) <18> md5? <5> crc16 <19> jonnay: Well, it's one of those things that if we let them go, we'd be fairly well buried in announcements for every itch-scratching one-man-show that gets started up.. :) <18> crc16 in PHP? <18> I see crc32 <5> cube You asked for *fastest*, and didn't specified anymore... <18> Stormchaser, true ;) .. that's not built into PHP tho.. + is prone to colisions <20> hi <20> any one recommends me a good source to read about OOP php ? <5> cube: So is SHA1 and MD5 <17> snow: http://php.net/ <17> documentation, and look at the cl***es section <17> anything other then what's in there is probably better covered by a general OOP theory book <5> he ment php.net/oop and php.net/oop5 <21> snow__: I'm reading Objects, Patterns and Practice... not bad - but don't think it would be good for a true beginner of OO <17> Stormchaser: I don't know the urls off the top of my head yet ;p <20> But I like to study how PHP works in OOP terminogy... <17> lig: who wrote that, I'm not a rank begenner, but I need some serious schooling <8> snow__: the PHP manual to get a handle on OO concepts as applied to PHP, and then probably some of the general OO bibles out there.. perhaps Design Patterns by the Gang of Four, the content at C2 is generally good (http://www.c2.com) <20> I know well what OOP is <21> nathe: apress book - author is ....Matt Zandstra <5> cube: 1) *why* do you need to hash an SQL query, and 2) with the speeds of computers these days, the comp wouldn't notice much difference between CRC16 and SHA1 <8> http://www.phppatterns.com/ mightbe a good choice. <4> only if you want to go blind <5> lol <21> those colors are hideous <18> Stormchaser, I'm trying to writing a db cl*** & coming up w/ a method of fetching rows that allows you to make further queries within a loop <18> Stormchaser, like : while ($row = $dbo->getRows($sql)) { .... while ($row = $dbo->getRows($sql)) { .... } .... } <22> Apache 1.3.28+PHP 5.1.2+Mysql 5.0.18 Its not working properly... <5> where does the hash fit in? <22> Fatal error: Call to undefined function mysql_connect() in <5> PHP works properly <18> Stormchaser, I'll probably go w/ a do while... <5> sander: Did you remembered to enable mysql support inn your PHP? <5> cube: What? <22> PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysql.dll' <22> the file is there... <18> Stormchaser, so like: $row = $dbo->getRow(); if ($row) { do { ..... } while ($dbo->getRows()) <18> but I like the above.. b/c it's way more elegant <5> yes it is, but it happends, because it can't fund libmysql.dll (or something) <22> I really dont know how to solve this problem <8> Yikes. I see what you guys mean about the colour scheme.... <18> but very hard to implement.. unless I add hashing to the query <22> I tried so much to solve this one
Return to
#php or Go to some related
logs:
xorg lcd out of range external suspend to desk i #php scankey xp WebEx recording (.wrf) file ubuntu get_defined_vars clean
#ubuntu geekasys Starting OpenBSD Secure Shell server. fail #php
|
|