@# 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



Comments:

<0> howecome I lose my session inside an iframe?
<1> romans5n1: how do I perform a backreference?
<2> can i use array_push to onto a multidimensional array?
<1> yes
<2> array_push($arr[0][0], $val)
<2> like so?
<3> like 2006-05-28T3:58:38-06:00 ... or other common ways of representing dates online... I'd love to have a ready made list of format strings ( such as "F d, Y" ) that I could just throw into the date function, instead of having to remember each time, ok do I need an m, n or M here?
<1> Monkey_b: page loaded before you set session vars in the other page? cookies disabled?
<1> SubOne: correct
<2> what if the element is not an array
<4> setuid_w00t: what you have works for me to get the value.. (sorry about the request/get I havent used it much so I didnt know about it) http://michaelrice.org/tmp/test.phps
<2> like if its the first element i add
<2> will it still work?
<1> $arr needs to be an array
<5> does anyone here know anything about cookies?
<3> alta... inside something like ereg_replace() you could reference the first set of parenthesis as "\\1" in the replace with paremeter... with something like ereg() you can store the matches via the matches paremeter i.e. ereg("match me",$based_on_this_string,$store_matches_here);



<1> could you give me an example i.e. using the text I provided please?
<6> Monkey_b: can you show me an example
<1> SkareCrow: I know enough. Ask your question and you'll find out what people know.
<3> the preg functions have similar methods... just read the manual (php.net/ereg , php.net/ereg_replace, php.net/preg_match , php.net/preg_match_all, php.net/preg_replace )
<5> alta, i have asked the question
<5> http://pastebin.com/743572 Why is it that these cookies aint being set to null when i request them. the only one that actually sets the value to null is the if ($_POST['userLogout'] != "") and that will log you out. but all the other ones will not work correctly...
<5> if you look at lines 35 + 36 you will see im trying to set the values to null but it isnt doing anything... but.. if you look at line 50 that one works just fine...
<3> preg_match("/how do I get (.*?) from this string/", "how do I get THIS from this string?", $matches); .... $matches[1] == 'THIS'
<1> thankyou very much :)
<1> SkareCrow: are you sure the setcookie line is being executed?
<5> yes
<5> i think..
<5> its the same exact line as line 50
<5> and i have stuck in a small echo
<5> to see if it goes inside that small block
<1> the one that works changes the page location which is required for the values to update. Are you checking if the cookie has been set without a browser page reload first?
<5> hld on
<5> i dont know why that would matter...
<5> it is unsetting the cookie
<5> that cookie shouldnt expire unless someoen tells it to
<5> so redirecting it wont unset that cookie value
<1> the php script doesn't treat the cookie's value as changed until the next page request
<5> if i redirect that one it tells me that the server is incountering problems redirecting
<5> in firefox
<6> anyone know of a parser thatll translate xml into variables in php4?
<5> meaning the script is redirecting over and over
<5> the script goes into a loop cause its not unsetting the value
<5> setcookie("warpedUser", null, time() - 7200, "/", "", "0");
<5> header("Location: scripts.php");
<5> its not setting it to null
<5> setcookie("warpedUser", null, time() - 7200, "/", "", "0");
<5> echo $_COOKIE['warpedUser'];
<5> this will echo out the value of warpedUser
<5> whitch is what i set it to by hand
<5> a9s8df <-- thats what it echoed out
<5> warpedUser=a9s8df <-- thats my cookie
<1> that's because the value of $_COOKIE['warpedUser'] doesn't change until a page reload!
<1> try setting FALSE or '' as the value
<1> rather than null
<5> but alta...
<5> grr
<5> you dont understand
<7> ?
<5> it isnt setting it i have reloaded the page after doing that
<5> and the script keeps redirecting
<5> over and over and over and over
<6> no one?
<5> because the cookie's value hasnt changed
<7> dont use null
<1> maybe that's because you're using the value null
<1> and why I said try FALSE or ''
<5> null works just fine for the bottom one...
<6> itrebal: know of a parser thatll translate xml into variables in php4?
<8> moin
<8> oh, hi
<7> nphase: no
<7> sorry
<6> hmm
<6> i wonder if i can find an html tree parser
<7> DOM, maybe - with some work
<5> setcookie("warpedUser", "", time() - 7200, "/", "", "0");



<5> header("Location: scripts.php");
<5> still goes into the loop
<5> keeps redriecting over and over cause the value hasnt changed
<5> setcookie("warpedUser", null, time() - 7200, "/", "", "0");
<5> header("Location: index.php");
<5> but that one works fine
<7> your trying to *unset* the cookie there
<6> itrebal: all i want is like <this><that>value</this></that> to be $xml['this']['that'] == "value";
<7> nphase: simpleXML?
<6> itrebal: php4
<7> oh, i dunno
<5> itrebal. i know this
<7> alright
<5> i doesnt even execute this unless warpedUser is set
<5> if (isset($_COOKIE['warpedUser'])) {
<9> Hi, I'm (really) new to PHP. I want my script to only repeat a request a set number of times (5). But I'm not sure how to do it.
<9> My source is here: http://truth.pastebin.com/743652
<5> it shouldnt even enter this block after i redirect it
<7> SkareCrow: whats your error reporting?
<5> there is no errors
<1> do you have error reporting on though?
<7> whats it set to
<5> look at my script itrebal
<5> lol
<7> i didn't see the pastebin
<1> it's set in php.ini
<5> one works just fine the other one just the same doesnt work
<7> PseudoPlacebo: what do you want limited? the foreach?
<5> http://pastebin.com/743572
<9> itrebal: Yeah, i guess.
<9> I just only want it to do the thing five times.
<9> But I'm not sure if it'll just do the same query five times.
<9> Which would show up five of the same thing.
<9> Ya know?
<7> PseudoPlacebo: theres an operator to increment a number by one, its ++ - so $count = 0; $count++; $count now == 1, using that and an if() block, how could you solve this?
<5> and yes alta error reporting is on
<9> I know about that stuff, itrebal.
<7> PseudoPlacebo: then impliment it
<9> But wouldn't it query the same thing five times?
<9> Turning up the same photo five times?
<7> depends where you use it
<9> =\
<4> PseudoPlacebo: for($i=0;$i<5;$i++) { do_function();}
<10> hi, i want to use one of the many MVC frameworks for PHP(5), but don't know which one to pick, can someone suggest one?
<7> AcidReign, alindeman, BigE, caffinated, Davey, enygma, EvilWalrus, HolyGoat,jmkg, Jymmm, MarkL, mattmcc, newbienetwork, philip, piera, Pollita, [RainMkr], snipe, Stormchaser, TML, Wolfpaws - if any of you are around (sorry who arn't for the highlight), SinnerG needs to be voiced
<1> SkareCrow: stick around, I'm trying the script on my server
<5> alright ima go smoke
<5> just private message me so i dont have to scroll every wherel ookinga round
<11> pff
<11> stupid Tor 'blocking' :p
<11> well, I'm trying to create a contest 'system' but its not going that well.. any advice ? :p
<12> SinnerG: Ther's a topic part for tor user for a reason...
<1> SkareCrow: works fine for me even with null. must be an include problem or with the mysql query
<5> alta.... im telling you this. it works fine. if you change the value yourself it wont unset it
<5> line 50 works just the way it should work
<11> woflspaws..
<11> I didnt get a voice...
<5> just not line 35
<11> I asked ok??
<11> No-one is online :(
<11> or active
<12> SinnerG: ask an op who is around?
<11> I asked all?
<12> I didn't get anything
<11> itrebal even asked for me on the chan
<5> line 35's block checks to see if you alterd the cookie. if your IP in your cookie doesnt equal the same as your real IP then it should usnet the value of the cookie
<11> <7> AcidReign, alindeman, BigE, caffinated, Davey, enygma, EvilWalrus, HolyGoat,jmkg, Jymmm, MarkL, mattmcc, newbienetwork, philip, piera, Pollita, [RainMkr], snipe, Stormchaser, TML, Wolfpaws - if any of you are around (sorry who arn't for the highlight), SinnerG needs to be voiced
<5> the IP in the cookie is username:md5x2-ip:md5x2-p***word and its all base64'd
<1> I see that from the code
<11> so can my SinnerG get a +v ?
<5> did you try changing your cookie"
<11> so I can drop this connection
<13> shouldn't bin2hex be the same as dechex(bindec( ?
<5> change the cookie to warpedUser=asdf


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
Xubuntu inittab
Can't create table *frm (error: 121)
#suse
#gentoo
HP Integradet Module
DSL580
#linux
#php
#math



Home  |  disclaimer  |  contact  |  submit quotes