| |
| |
| |
|
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
Comments:
<0> no you don't <1> Yoris BULL****! <2> ok tell me then the solution if it's so easy <3> This is ##php, not #sql <2> i work with mysql/php for many years <0> !+fish <4> Give a man a fish, you feed him for a day. Teach a man to fish, you feed him for a lifetime." The moral of this lil story is if you spoon feed someone information that's fairly obvious, you're not really helping them, just preventing them from growing/learning and being able to be resourceful for themselves. <0> hahahaha :) <2> why did you kick me? <2> what did i do wrong? <5> alas poor Yoris <2> i just ask a question :(O <1> Yoris you are being stupid <1> and a lzy bastard <2> no seriously <1> yes, seriously
<2> maybe you don't understand my question <2> http://hashmysql.org/paste/viewentry.php?id=1381 <2> look at this <0> *sigh* <1> Yoris we understnad completely <6> bah <2> i tried group by, i tried distinct :( <2> but doesn't work <6> The wireless in this college ****s sometimes. <0> Yoris: *WE*Don't*Care*! <1> Yoris this is ##php, not #sql <2> php and mysql complete eachother, people who know php also know mysql <2> and in #mysql there are no people that talk <0> Yoris: They do? <7> that's so romantic <1> !+g8 <4> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <2> i was there a moment ago and they told me 'try group by' 'try distinct' while i already tried those but don't work :-/ <7> it's so rare for two pieces of software to find each other in this mad world <0> I can do mysql stuff with Python, and non-mysql things with PHP... So... your statement is faulty. <8> :) <0> cool nick <2> Stormchaser i didn't say there is no php without mysql, i said that people that know php know mysql aswell <9> i think someone should give him the fish.. he seems really hungry <8> I've had it for 7 years :P <2> which is true for 99.9% of all php programmers i bet <9> and i don't think he wants to learn to fish <9> or that.. <2> please stop kicking my i only asked a question if it's so simple and i'm overlooking something just state the answer, i've been looking how to solve this for hours <1> Yoris We gave you links, it's your choice to refuse to read them, it's our choice to refuce to listen to you till you have. <0> Yoris: Come back when you resolve *SQL* question, and when you have a PHP one <10> Is there any was to loop through a directory listing contents.. but only displaying ones in a txt file? <1> Climm No, try ASP <10> lol <10> Must be a way <8> Jymmm: was that sarcasm? <0> php.net/dir <11> Climm: glob <11> Jymmm: ?? <1> Climm have you tried google yet? <0> itrebal: Faulty client / connection <11> Stormchaser: gotchya, been comming in and out all day? <0> most of it <11> alright <10> Less of an ego please, itrebal i'll give it a look thanks <1> itrebal you're next! <11> Jymmm: EEP! <1> itrebal and just for GP too <11> heh <1> Climm have you tried google yet? <12> Anyone use DOMDocument? <12> I'm hitting a break wall with it <11> Jabberwock: ask <12> I'm trying to parse an RSS feed. I can do getElementsByTagName("blah").. but then what if I want to get "thumbnail" and "link" which are children of "blah" ? <1> Climm: http://www.google.com/search?q=php+list+files <12> I can't treat what getElementsByTagName returns as a domdocument object because it's a domnode <12> DOMNodelist rather <12> which doesn't support getElementsByTagName <13> is there a way to disable register globals without editting the ini? Or by the time a script runs, it's too late to disable register globals? <0> Jabberwock: which PHP? <12> I'd use magpie but it does not see self closing XML tags which flickr uses..
<14> gizban: .htaccess <11> gizban: apache? <14> Also possible within your script, perhaps <13> itrebal: yeah <12> init_set("register_globals","off") ? <11> gizban: then use .htaccess <7> gizban: if you initialise all your variables, then register globals being on should have no effect <11> kuja: nope, its too late - the variables are already set by runtime <12> itrebal: so any ideas as to my problem? <7> you could loop through GPC and unset all the variables in them from the global scope if register_globals is on i suppose <11> Jabberwock: i havn't used DOMDocument, i've used simpleXML though <7> but i mean, if you always use $_GET, then you should never notice that the vars are also in the global scope <15> why the hell would you disable register globals <10> Jymmm, re-read my question <12> Will simplexml_load_file load a URL? <0> !+register_globals <4> If register_globals is off, you'll need to use $_POST['form_field_name'] or $_GET['form_field_name'] to get form elements (as opposed to $form_field_name). See http://www.php.net/reserved.variables for more information. Why did this change? See http://www.php.net/manual/en/security.registerglobals.php for an explanation. Also see: vars <14> ymcx: Why the hell would you enable them? <7> ym: because it's default off now? <15> erm.. sorry :) backwards. <15> why would you enable them. <14> Should be default-****ing-gone in PHP6 <15> heh. <1> http://securephp.damonkohler.com/index.php/Category:Injection_Attacks <7> because you have 50,000 lines of code using them? <15> about time. <0> About time! <16> Sigh. <15> Xyphoid: 50k eh? <17> hello. Iam suing preg_match_all to get for example ID and name out of a string build like : asdfasdf{:ID]sadsdfg{:NAME}. But somehow it works only if there are spaces like : asasd {:ID] asdfasdf {:NAME] asdfas. Iam using that expr :'/\{:(\S+)\}/' <11> Xyphoid: then you rewrite everything to *not* use them, i did it - you can too <7> what motivation do I have to do that? the code works and is secure <16> OK. I do php -i at command-line in Unix. It mentions the config files it parses. I check them all. The only non-extensions list one (real) says "display_errors = off". Why is it that when I run PHP scripts on the command-line, it STILL outputs notices?! <18> how can i check that $value is between 1 and 4? <7> i might introduce new errors <15> Xyphoid; the same reason you should use condoms even if you dont have aids. <7> (i'm not saying i'd write new code using register_globals, of course) <1> Xyphoid read that link I just posted <19> I've got a post variable (string) that's "1" and I want to find out if it's a number <19> but it's not 'cause it's a string, even though it is in fact a number... <19> is there a function that tests that? is_numeric isn't working 'cause it's a string, not an int <3> vcarson, if ($v > 1 && $v < 4) { } <17> hello. Iam suing preg_match_all to get for example ID and name out of a string build like : asdfasdf{:ID]sadsdfg{:NAME}. But somehow it works only if there are spaces like : asasd {:ID] asdfasdf {:NAME] asdfas. Iam using that expr :'/\{:(\S+)\}/' - Can someone help me out ? <3> vcarson, http://www.php.net/manual/en/language.control-structures.php <0> !tell xored about repeat <17> Stormchaser: sorry <1> Lone_Wanderer >0 $var <9 <7> but the thing is, if my php 4 code was written with awareness of register_global's security problems (like, i initialise my variables), then just using it isn't fundamentally broken <19> waaaait a minute, is_numeric is supposed to return positive on numeric strings <19> but it's not <18> function fetch($file, $lowAccess, $highAccess) { } fetch("random.php", 0, 4); Then if the current user has $accesslevel = 1; i must make sure that its not below $lowAccess and higher then $highAccess <11> Lone_Wanderer: er.... 'numeric strings' :) ? <1> Lone_Wanderer ascii value of "1" <7> on the other hand, i wouldn't care much about it going away in php 6 because it's not backwards compatible anyway <19> itrebal: a string that's "1" or somesuch <1> ascii 49 == "1" <7> that app'll just stay on php 4.x forever or until there's a business case to rewrite it <19> yes, obviously <19> but that doesn't help 'cause there could be any number of these <16> Is PHP 6 gonna drop the OO? <1> Lone_Wanderer: ascii 49 == "1" <19> I know! <19> but I can't check the ascii value of every possible number <16> When do you expect PHP 6 to become stable? <11> KimmoA: no, they are improving OO, IIRC, they are dropping register_globals <19> what if it's 234028450923440 instead? <1> Lone_Wanderer then why did ya ask in the first place?! =) <14> KimmoA: Why would it drop OO? <16> itrebal: Grrr... <18> nevermind that will be: if($lowAccess <= $accesslevel && $highAccess >= $accesslevel) { } <11> KimmoA: a very long time... but in the last 3 weeks i've only had a single failed build <16> kuja: Because it's silly... <14> OO is silly? <17> Stormchaser: maybe you can help me ? It seems like i need to ad somethink like leeding and trailing by any character
Return to
#php or Go to some related
logs:
libdvdcss2.deb #suse #suse wpa_cli can't connect wpa_supplicant intel alsa distortion digital alc880
#gimp qmailrocks sha
LinkSys ipset quintegrasolutions mount: mount point /mnt/disk does not exist
|
|