@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> Supermouse: What sort of 'things'?
<1> kidk: yes.
<2> caffinated: Cool, so I should be able to check them using something like is_uploaded_file($_FILES['newfiles'][$i]['tmp_name'])
<3> which crypting is good to use for p***words etc?
<4> kidk: Do what you said and examine the output of: echo "<pre>"; print_r($_FILES); echo "</pre>";
<5> salah: i use sha1 with some sorting of salting for security
<6> If, say, I needed to be another user to do something, how would I do it?
<3> pzorn, what do you mean?
<7> what is the regex thingy for not?
<4> mythril: ^ ?
<4> as in [^abc] not a b or c?
<2> Dangermouse. I see. Slightly weird, but I get it. Cheers.
<7> oh hmm, I though ^ was to match begining of a line
<4> kidk: you're welcome.
<6> It is, if not in brackets.
<4> mythril: not inside []



<7> ok, thanks Dangermouse
<5> sha1 is hash function built into php and salting means adding random data to the original string so that it is more secure.
<6> How would I change my user ID?
<5> salah: more info on salting http://en.wikipedia.org/wiki/Salt_%28cryptography%29
<4> freeone3000: sudo?
<6> Dangermouse: In PHP.
<4> freeone3000: exec('sudo ... ');
<6> Dangermouse: Is that really the best way to do it for file operations?
<4> Don't know :)
<8> does php have refactoring?
<0> Sure.
<0> Open a piece of code in an editor, and refactor it.
<6> JakeConnor: Yep, same way every other language has it.
<9> Is there an easy way to turn " into &quot; in a string?
<6> JakeConnor: Through your IDE or copy paste.
<9> (and all other entities I guess ;))
<6> Woosta: htmlencode
<9> ta
<8> freeone3000: ie?
<10> htmldecode() rather.
<10> htmlencode() will turn &quot; into &amp;quot;
<10> or html_entity_decode()
<6> "->&quot; is htmlencode(), &quot;->" is html_entity_decode.
<9> htmlentities maybe?
<6> Ah. That's the one. Was close...
<11> hello
<11> sorry if this is a very generic question but I'm wondering how I can prevent php from displaying errors in the browser window
<12> error_reporting(0);
<5> or look at the error types in the php.ini file
<13> is str_replace case sensitive?
<14> what's faster? preg_match or mysql_escape_string()?
<15> Those functions don't really even do the same thing, do they?
<14> well
<14> I'm doing if isset( $_GET['sid'] ) && preg_match( "/[a-zA-Z0-9_-]+/", $_GET['sid'] )
<16> Toke: it's case sensitive, str_ireplace is insensitive
<14> so I'm thinking it's kinda redundant do then run mysql_escape_string() on it if it even p***es
<13> k
<13> ty
<17> why doesnt '@\\(Agent [0-9][0-9][0-9]\\)@i' match '(Agent 101)' in preg_replace?
<18> hello
<18> http://pastebin.com/734127
<19> hey
<19> is there any multi-coders (javascript, ajax, php, etc) with free time on there hands?
<20> i'm the kind of guy that does RDP into someone's workstation and does "shutdown -f"
<17> webavant: hows that workin out for you on those windows machines?
<18> lol
<21> please fix my programming logic.. http://pastebin.com/732991 i want to save result of this to array: SELECT ToCa_ID, ToCa_Name FROM tour_category WHERE ToCa_Name!='$temp_tour_category_enabled[$i]' the problem is ToCa_Name!='$temp_tour_category_enabled[$i]', i don't know how.. please give some tips, like "you must do for(..) { while(fetchrow){} } i'll appreciate it
<1> webavant: ah, so, you're an ***hole? :)
<4> lol
<4> shutdown -f -c "im an ***hole" :D
<16> CyberMad: I never understood why the HECK do people insist on using variables inside strings directly... cut the string with " . $temp_tour_category_enabled[$i] . "
<1> i imagine he's attempting to shut my workstation down as we speak
<1> good luck with that corporate firewall
<4> lol
<4> caffinated: running linux by any chance?
<13> "don\\\'t" <-- what causes this?
<1> Dangermouse: I am
<4> :P
<17> 'shutdown -f' is not recognized as an internal or external command, opearalbe program or batch file.
<22> how do you round a number?



<1> Toke: over-escaping
<16> CyberMad: http://pastebin.com/734210
<4> Renacor: round() ?
<21> lietu because there is some value i don't want inside to new array..
<1> Toke: also, doing too many drugs while programming can cause that kind of thing
<4> lol
<16> CyberMad: yer not making sense
<21> lietu $temp_tour_category_enabled[$i] is collection of selected value
<16> CyberMad: did you check my pastebin reply?
<23> Guys,
<23> is there any such thing as packages in object oriented PHP???
<21> lietu like there is america, asia, africa, australia.. but i already selected america and asia, then i want to get the africa and australia
<21> lietu ok i will
<16> CyberMad: the only change is around the $temp_tour_category_enabled[$i], which should enter the variable's value correctly in the string
<16> ... I honestly think most of these "modern coders" that get used to things PHP lets you get away with will never ever learn to properly code
<16> and not just PHP, the damn browsers don't give a rat's *** about how your html or CSS is structured, they don't even nag, they just show everything and use some automagical fixing engine etc, imho, they should print out a huge message saying "Some LLLAMAH who can't do anything right has TRIED to make a homepage, but unfortunately they're so poor at it that we'll just try to show you something that might look atleast remotely sane" ;)
<17> lietu: doesnt your attitude kind of defeat the purpose of the internet in general?
<1> lietu: you're preaching to the choir
<21> i try make clear the problem: there are 2 listbox (right listbox "disabled" and left listbox "enabled"), then i move some content of disabled to enabled, then i click submit, then on the next page will return selected content "enabled" and not selected "disabled".
<16> batphone: to encourage bad code? ;)
<23> ??????????
<17> lietu: if the internet had nothing but perfect code there would be 5 web sites
<16> caffinated: yeah, I know, just felt like lashing out a bit ;)
<21> i can show all content in the enabled box, but problem with the disabled box
<17> lietu: and none of them would render in i.e. ...
<24> anyone have experience fighting with the curl extension regarding SSL certificate verification?
<16> batphone: exactly, and I hate it and wish someone would nuke 95% of the world ;)
<16> nuke as in with a-bombs
<1> lietu: heh, there was a really good comic about that. let me see if i can find it.
<24> im testing an app and im just telling it CURLOPT_SSL_VERIFYPEER = false and CURLOPT_SSL_VERIFYHOST = 0, yet its still complaining about certificate verification failing
<25> I want to use the mail function but I don't have sendmail on my server
<25> I do have an smtp server
<25> how do I make the mail function use that
<1> lietu: http://angryflower.com/webshi.html
<1> lietu: i think that really describes any one of us
<16> lol, yeah ;)
<21> lietu if i have "a,b,c,d,e,f,g,hyour last script will return
<21> sorry i hit enter before finish it..
<21> lietu if i have "a,b,c,d,e,f,g,h" then in your last script will return h,h,h,h,h,h,h,h
<16> what the heck, you only complained abuot "the problem is ToCaName!='$temp_tour_category_enabled[$i]'
<16> about too
<21> i mean:
<16> and that sentence doesn't make sense even with about instead of abuot, but that's ok, I guess ;)
<21> $temp_tour_category_enabled[$i] <- because this is an array, there is no problem if that is not array.. i don't know the logic of checking a row that must != value in array $temp_tour_category_enabled[$i]
<13> [18:48] <1> Toke: also, doing too many drugs while programming can cause that kind of thing
<13> you would be suprised how helpfull the right ones can be
<13> anyone under 21 dont read that
<16> CyberMad: do you mean, $temp_tour_category_enabled[$i] is an array, or $temp_tour_category_enabled is an array?
<21> both is an array..
<16> then what the heck are you trying to check with the !=
<13> but seriously though "don\\\'t" <-- what causes this?
<16> Toke: you're espacing an already escaped string
<16> ... I think
<21> i try make clear the problem: there are 2 listbox (right listbox "disabled" and left listbox "enabled"), then i move some content of disabled to enabled, then i click submit, then on the next page will return selected content "enabled" and not selected "disabled".
<13> hm..
<16> CyberMad: so practically your problem is that you're handling them the wrong way around, change your if() clauses to the opposite ones where ever you print the listboxes
<21> so i need to do != to just allow content of array that have not selected in disabled box
<16> oh god
<13> lets see, the functions im using on it are: file_get_contents str_replace and fwrite
<21> sorry, i'm not good in english... so can't explain it clear
<21> :(
<13> its taking text from a form and dumping it into an html
<13> when it hits the html it looks like this: "don\'t"
<26> strip slashes
<26> is what your looking for
<27> stripslashes()
<21> lietu can you tell me how is the logic of it?
<13> and then when its pulled out of the file its got 3 of them
<27> Toke, first off
<13> nah, i need slashes for other things
<27> turn off magic_quotes_gpc
<27> secondly, make sure you're using a proper *_escape_string function (respective to your dbms)
<13> i added the quotations
<13> hm..


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

wifi-radar doesnt appear
#linux
gentoo xeon stage1
php $_SERVER['REQUEST_TIME'] calculate
#ubuntu
+collie +openzaurus +deactivate
zr36067 ubuntu dapper
rpc2 drive ubuntu
#qemu
#ai



Home  |  disclaimer  |  contact  |  submit quotes