| |
| |
| |
|
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
Comments:
<0> xshad: sorry i didn't understand <1> are you trying to use $bla = new PDO("sqlite:/path/to/file"); right ? <2> hi... I'm trying to understand what the difference is between "else if" and "elseif"... could someone help me out ? <3> ElvenProgrammer: no idea, only other thing i can suggest is to restart apache if you have changed any of the dll files. :) <1> ld none <3> ld: ' ' <1> wtf.. lag :( <2> so it's like "elseif" might as well be an alias to "else if", right ? <4> ld: it's just preference <0> Lomat: thx anyway but i did several times already <2> I see <2> ok, thanks people <3> ElvenProgrammer: if all else fails delete the php directory and redownload and reinstall it :) <5> Hello <5> Is this the right place to ask minor php-questions or will I get laughed at? <6> 'fo sheez
<6> Right place <7> swentel: i got it to work... the image file is uploaded, and the info is stored in mysql... <6> Just don't ask about mysql, that pisses me off <8> :) <5> k-thx. I have a textarea I want ppl to enter text in, including links... <6> you mean anchor tags? <6> or url's <7> is there a way to specify whether an input file type looks in the client machine or in a server directory for files/images? <5> but when I type in <a href="http://iivq.net"> then it appears as <a href=\"http://iivq.net/\"> <1> gymsmoke input type="file" <9> hi! <5> hi all <1> IIVQ www.php.net/stripcslashes <7> xshad: i'm using that, but the browse defaults to my client dir's... <5> liat: url's <6> ok <1> gymsmoke ah.. .no <5> xshad: I will read, thx <6> that's magicquotes biting you in the *** <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if( session_is_registered( 'login' ) )? <6> turn it off, or strip slashes <1> gymsmoke got your point, there's no way <7> xshad: i was wondering if it can be directed to look at a directory on the server <7> xshad: ok <7> xshad: so i would need to code that by hand... <1> on the server ? <1> what do you want to do? <7> xshad: yes, i have a directory of images that i want the user to pick from... <1> gymsmoke and download it ? <1> IIVQ and http://www.php.net/manual/en/function.get-magic-quotes-gpc.php also :) <7> xshad: no... the image would be appiled to their data, and the file location is stored in the db with their information <6> yeah <1> gymsmoke use any kind of gallery <5> xshad and liat: thx <1> list all possible images, with its path, on select, save it <7> xshad: good point... <7> i'll look into that... <5> Another thing I wondered about - when and how much should I worry about SQL insertion into textfields? <6> always <6> never trust your users <1> IIVQ always <5> is there a document describing that? The PHP&MYSQL for Dummies book just refers to it in one line :-P <1> user = pure evil <6> the PHP manual, under scurity <5> ok, but is there a simple code to make sure users don't insert SQL code? <6> addslashes <5> ok, I'll check that later on... <6> and str_replace(';','', $string); <6> don't let them enter semi-colons <5> hmmm <6> EVER <5> ok <6> they can terminate your statement, and make one of their own <5> well that's for later business <6> notSoGreat <5> I know <8> dont start bad and better later, start good. <8> ;x <6> start great <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if( <6> :P
<9> session_is_registered( 'login' ) )? <8> good is good enough <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if( <10> if i select two columns from a table, and p*** them into $result, how do i get the values of just the first column? <9> session_is_registered( 'login' ) )? <1> using prepared statements, and native sql funcions <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if( <8> JEES <9> session_is_registered( 'login' ) )? <8> :X <6> UltimateB|, You never want "good enough" <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if( <1> **** you lng <1> stop <6> what he said <5> my security now is that you have to manually enter the MySQL p***word in the form to register things <8> i concur <6> spamming is the fastest way to get +b <6> and flooding <9> which is better: if( session_is_registered( 'login' ) && isset( $_SESSION['login']['usr_id'] ) ) or if(session_is_registered( 'login' ) )? <1> and get no-answers <1> session_is_registered is deprecated <9> sorry! it was accident! <1> don't use it.. use isset($_SESSION['data']) <9> xshad: no need to abuse me! <8> or use: www.pastebin.org <1> you abused, not me <11> clear <9> accident! <9> xshad: bonkers! <10> if i select two columns from a table, and p*** them into $result, how do i get the values of just the first column in php? <8> :) <8> there u go <10> i did ask before though :P <8> shhh <8> you might get banned <8> ;) <10> :P <5> pyre|cipher: I don't know how you select stuff from your table, but like me, just get it from the first collumn of your array? <8> depending on the method used to "put into $result" <1> $result[0]; $result[1]... <8> i always use mysql_fetch_***oc() ;) <10> hmm <1> errr :D <6> oh, I just finished making a pastebin, could someone check it out for vulnerabilities? (Please don't like ****ing criticize it to death, I'm relatively new to php ~7 months) [http://platinum.nocdirect.com/~jdottrua/truPaste/] <10> UltimateB|: using that, how do i distinctly seperate the two? <5> weird q: why is this channel ##php and not #php? <8> pyre|cipher: what code have you got atm? <1> IIVQ it's an about channel <12> IIVQ: It makes the network overseers feel warm and fuzzy. <13> hallo <7> when I pull the data back from the db, one of the fields in the array needs to populate an input field of type 'file'.. is there anything special that I need to do to get this field populated ? <13> i am searching for a simple gallery script. does anybody know where to find one? <1> ganymed_ www.sf.net <5> liat: http://platinum.nocdirect.com/~jdottrua/truPaste/index.php?act=view&id=18 <5> in other words: it looks good! <5> nice <10> a foreach statement loading each $line as col_value within a while($line = mysql_fetch_array($result, MYSQL***OC)) <6> no man <6> that's mixed HTML and PHP <6> it messes up the highlightert <5> sorry :-P <6> :/ <8> pyre: isnt it just $line['columnname'] then :) <6> http://platinum.nocdirect.com/~jdottrua/truPaste/index.php?act=view&id=16 <6> That's a good example of the highlighting <5> there you have no vulnerability but a bug ... I registered it as php <5> well bug <10> hm, i suppose :P been up for 36 hours no sleep, i should normally know this :P <6> it's not a bug <6> it's perfectly working fine <5> "not-working expected feature" <8> pyre|cipher: get some sleep then code?
Return to
#php or Go to some related
logs:
centos hang grub RAID1
+htop +zombie checking kernel ubuntu #linux kentaur porn #linux phpeclipse Invalid character freenas irssi mke2fs ubunti boo __getattr__
|
|