@# 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 27 28 29 30



Comments:

<0> http://pastebin.ca/42172
<0> it's very rough code... not doing much yet
<1> Fushuing: http://itrebal.com/gettest.php
<2> JSDude, what are you trying to do?
<3> what's thet?
<3> *that
<2> JSDude, Are you trying to see if certain keys are posted?
<0> trying to filter out the $_GET's that conform to the keys in the array
<0> and add them to a new array
<0> which I will then use to generate a query string
<1> Fushuing: showing that $_GET is an array, regardless if it has any items
<3> ....
<3> i think i said that earlier
<2> JSDude, you want to unset them?
<3> i know it's an array
<0> together with the $matchUp array to map the form fields to db fields



<0> I do not
<1> Fushuing: but he specified that it was $_GET
<3> yeh, but he didn't say what it was supposed to contain that COULD cause the problem
<1> ah
<4> Thank you for your help, I now have an almost working db abstraction layer.
<1> mmhmm
<0> this is my URL: actuser.php?userName=Yehuda&p***wordVer=P***&email=wycats@gmail.com
<2> JSDude, So you're trying to map that to insert into a db?
<0> correct
<5> why are you using method="get" ?
<5> use method="post"
<5> and make ALL db fields called data[something]
<6> if i have a "SELECT SUM..." query, how can i extract that from a result?
<0> I'm using AJAX, and I'd rather use GET
<0> makes my life easier on that end
<2> JSDude, whats ajax have to do with get or post?
<5> and $dbData = $_POST['data']; done, you've an array to insert into the db
<5> stephen_ select sum(BLA) as result;
<0> isn't $_GET already an array?
<5> yes it is
<2> JSDude, I don't see any code to actually create the INSERT INTO table (x, x, x) VALUES ('', '', ''), I'm ***uming you want to do this with the loop?
<0> yes
<2> JSDude, ok one sec.
<0> I'm first trying to create a stable array
<5> GET allows sql injection, post doesn't :D
<6> xshad, well where do i go from there ... ?
<7> xshad WRONG
<1> xshad: VERY WRONG
<7> GET OR POST can allow sql injections
<8> can session id's duplicate ?
<7> GET or POST can allow sql injections
<5> yes, get is easier
<5> or not ?
<7> xshad NOT
<1> they are both just as easy
<0> where am I going wrong
<0> what's wrong with the foreach($_GET as $key => $value)
<2> JSDude, one moment.
<0> k
<9> JSDude, $_GET not an array ?
<0> It is
<0> I believe
<9> what error message you got ?
<0> Warning: Invalid argument supplied for foreach() in /home/swish/public_html/actuser.php on line 18
<10> is there a server-side configuration option that enables string functions like strtoupper() or ucwords() ?
<10> because they work on my laptop (in development) but not on my webserver
<9> JSDude, $varThatNOTarray=1;foreach ($varThatNOTarray as $key => $val) {}
<9> Try that code, what Error message you got ?
<9> if (is_array($_GET)) foreach($_GET as $key => $value) {} else { echo "_GET is not array"; }
<0> sa,e
<0> same
<0> if not an array, what is it
<0> If I can subscript it...
<7> !+gv
<11> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<9> how could i know ?
<9> perhaps you override the _GET
<12> any idea about http://pastebin.com/563729 ?
<2> JSDude, I don't know why you want to do it like this, but one sec pasting it in sec.
<0> php-bot... the dump says it's an array
<9> JSDude, what is_array($_GET) said?



<13> silasj: I don't know much PHP, but is !== correct?
<12> yes calamari... the fact is that it always return false, instead of true.
<0> it returns 1 Ox
<12> calamari, the problem is at regex I think.
<12> calamari, anyway, thank you.
<13> :) I've only modified existing code.. != seems to work there, so maybe I just got lucky :)
<14> if you have multiple values with the same name in a query string, is there anyway to get every value without making it name[]?
<13> silasj: by working I meant the code I modified, not yours hehe
<13> adding a couple features to a wiki
<1> Jymmm: i'm looking at my breadboard, and the distrobution bus on the edge of it, how are those connected throughout the rest of the breadboard? is each little block all connected, or is it similar to a mini-breadboard
<2> JSDude, http://2detailed.com/claimflows/test.php?userName=Yehuda&p***wordVer=P***&email=wycats@gmail.com something like that?
<1> xiuan: i'm glad you ran some escaping there
<2> itrebal, haha :P
<2> JSDude, http://pastebin.com/563772
<1> xiuan: 'cause i certainly checked
<2> JSDude, http://pastebin.com/563772
<2> omg I need some sleep.
<2> I'm like delussional, I just pasted the same link twice....
<2> I can barely spell right now; gah!.
<15> -_-
<15> http://2detailed.com/claimflows/test.php?userName=Yehuda&p***wordVer=P***&email=wycats@gmail.com&bob=what&doh=huh
<1> syf: :)
<2> lol
<2> in_array() psssh
<15> :P
<0> is .= a valid operator?
<1> yea
<2> JSDude, and to make sure the actual $_GET key matches up to put it in there, just do a array_key_exists on the loop key.
<0> instead of my loop?
<2> JSDude, what?
<2> one sec.
<16> can't I "foreach ($_POST as $value) { ... }" ?
<1> yup
<17> foreach ($_POST as $key=>$value) echo "$key=$value";
<1> ergl
<1> echo $key.'='.$value;
<17> psh, have it your way
<16> k.. prolly my server being ddosed or something then..
<1> whyst that?
<2> JSDude, http://2detailed.com/claimflows/test.php?userName=Yehuda&p***wordVer=P***&email=wycats@gmail.com&bob=what&doh=huh fixed.
<16> as it took _ages_ so I aborted it.. but worked now so.. :)
<0> Ok guys... I got it working
<0> Thanks!
<18> Is flock() insufficient for dealing with potential race conditions *only if you are truncuating files*?
<19> how can i find my /path/to/apxs ?
<20> Hi all
<1> endeavormac: its usually with apachectl
<18> In other words, if I am only appending files, is flock() a sufficient protection against two users issuing an append "at the same time"?
<19> thx
<18> Hullo? Race conditions?
<6> can i register an object (a cl*** i've created) in a session?
<21> nope
<18> stephen: Same sort of reason I'm worrying about race conditions. I'm putting "session objects" on disk.
<1> stephen_: you *can* its just a Very Very Bad Thing (tm)
<18> itrebal: If it's so bad, why is it trademarked? Huh? Huh/?
<18> :)
<1> hehe
<18> itrebal: You wouldn't know anything about race conditions. Would you?
<1> nope
<1> uhhh
<1> weird
<18> itrebal: Ever dealt with the possibility of multiple users initiating changes to the same file "at the same time"?
<18> itrebal: I don't mean emotionally--in PHP rather.
<22> Hi
<1> Erha: whenever i do, i do something similar to flock, i create a file called filename.lock, write, delete filename.lock
<15> yeah, that's a proper way of doing it
<23> ey
<18> itrebal: Just with fopen() ?
<23> i have dumbo n00b question
<15> better check the manual then idigital
<1> i use touch() and file_get_contents, as well as file_put_contents
<18> itrebal: Ah! =)
<1> idigital: whats your question?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

qemu -net nic win98
#awk
#php
debian bcm43xx_microcode4.fw not available or load failed
ubuntu gaim chat logs
getopt HELP_MESSAGE perl
AlphaBots
debian ERROR 1045 (28000): Access denied for user 'root'@'localhost'
#math
kubuntu kdm_config -gdm



Home  |  disclaimer  |  contact  |  submit quotes