| |
| |
| |
|
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 32 33
Comments:
<0> I wondered if it looked like that code is something that is not working because of versions? <1> no. <0> Stormchaser, Probably. But this is not my code! I'm just trying to make it work. <1> johnfg: Then get newer versions of the code. <0> Aha! That's the problem! The author has chosen to let it RIP, having gone to some blogging code instead. I, on the other hand, like this code. It's the code for mad.thought. <0> I've emailed the author about some things, but have not gotten a response :-( <0> And no, I'm not a coder, good or bad. <1> yay for dead projects! <2> Yay! <3> Hello .. In php5 if I implement a singleton cl*** (like the example from the manual) .. when I return $instance .. am I returining the object or a referance to it ? That is in php5 when I have a $var = new Mycl***() .. when I ***ign $var around like $var1 = $var .. is $var the object or a referance to it? <4> cupu: if it wasnt a reference, it wouldnt be a singleton. <3> BazziR: You're perfectly right .. I just wanted to make sure :) <3> So basicly every $var that handles an ovject is a referance to it right? (in php5) <5> is here any php guru <1> no. <3> :)
<5> need little help on doing something <6> Try #phpgurus <5> i have one php script that make gallery <1> EvilDin: um... And what might that be? <1> !+g1 <7> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question <4> cupu: yes. you have to use clone() if you actually want to copy an object <3> BazziR: Thank you <5> and it takes pictures one by one and create gallery, make index of gallery and then my problem is that when it comes to id that there is no picture, it should reforward back to index.php and i don't know how <1> header() <5> http://gimvic.org/dogodki/bolivar/showpic.php?picture=17 <5> if you click here next <5> naslednja <5> it link to only gallery <5> but i need to index.php <1> So you're asking a HTML question? <5> here is code <5> http://gimvic.org/dogodki/bolivar/showpic.php.txt <5> don't know which way but i know that this has to be written in php somewhere <1> !+enter <7> Don't use the enter key as puncuation. Think in complete thoughts, then type. <8> heh, complete thoughts; imagine that. <5> so if anyone know anything how to do that <5> i would be very happy <1> EvilDin: Who wrote the code? <9> Not him. <1> I KNOPW that... <1> er... KNOW <10> Stormchaser you did. <5> one friend <5> :d <10> (some friend) <8> is there some kind of code snippet database somewhere? <1> Jymmm: Aaaargh!!! you evil, EVIL person!!! You exposed me! <1> !+g10 <7> Guideline #10) We don't support xyz script. We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts <1> yay! "recommend" got in as well :) <5> the friend doesn't have time lately <11> now that's something I didn't want to see...Stormchaser exposed. <5> and i tried and asked here <5> if anyone know <11> EvilDin: can you post the relevant 5 or so lines to pastebin? <1> EvilDin: Don't abuse the enter. <5> ok <5> i won't abouse it <1> you just did. <12> Greets. Is it possible to add an object to a session and by that keep a constant reference to ones objects? My entire system is structured according to the Domain Model pattern. And I was wondering if a session could hold a reference to my system. And more important; is this a "nice" thing to do? (Best practices) <13> You can store objects in a session <13> You just have to have the cl*** declarations before session_start <12> Ok, great :) <12> Thanks <13> Properties other than non-serializable types (file handles, database resources, etc.) will be saved just fine <12> Hm, saved? <12> It should just contain a reference <13> References should work fine <11> Jemt: you want to have a reference to an object stored in $_SESSION, or you want $_SESSION to contain a reference to an object? <8> if I have a file full of image tags with full URLs, like <img src="http://example.com/something/image.png"> and I want to convert them all in the file to <img src="media/image.png">, how would I do this? <12> CryWolf: Both ofcause :)
<13> randy- probably regex <14> does anyone know why the w3c html validator complains about URLs which have & used as variable seperators? <12> I both need to place and extract the reference <11> Jemt: references will be lost when session data is saved. <14> that seems like a pretty common practice <8> Dragnslcr: I was hoping you wouldn't say that <13> DogWater- because & is a special character in HTML <8> Dragnslcr: ;) <8> DogWater: just use & <13> DogWater- if you want & in something like an href, you should use & <12> CryWolf: So I can't store a reference to my objects and by that avoid reloading all my data again? <14> Do I need to change the php.ini? <12> I have a pretty complex model . <13> I think you're "supposed" to use ; instead of & for separating GET variables, but nobody's adopted that yet <11> Jemt: you can store an object in $_SESSION, as long as the cl*** is defined before the session is started. <12> "CryWolf: Jemt: references will be lost when session data is saved." <8> Dragnslcr: actually I came across a site that did just that (the ; thing) yesterday <12> What did you mean by that? <8> Dragnslcr: forgot which site it was, but when I saw it I thought they were just being stupid ;) <13> randy- heh <8> Dragnslcr: actually I think they were using something like ;_ <8> or _; <8> it was weird, whatever it was <13> I think the old RFC's used &, and by the time anyone realized it was a mistake, it was too late to fix it <8> heh <11> Jemt: If you have a reference to a variable, the data, not the reference will be saved. <8> Dragnslcr: I don't suppose you're bored enough to help with the regex needed to strip filenames from img tags, are you? :) <0> So, am I sunk, unless I want to rewrite the code? <12> CryWolf: That dosn't make sense. So my objects are being serialized? <11> Jemt: yes. <0> Did you say that there is no 'compatibility mode' for php 5.1.2, so that older code would still work? <15> hi, i'm doing and administration menu, i dont want to use cookies, I just put session_id on database and then check if session_id() is the same as database, is this safe? <16> afaik session_id is using session cookies, so you are using cookies secretly. <12> CryWolf: Ok, thanks <14> why would you store the session ID in the database? so if someone gets into your database you can make it easier for them to spoof the session? <15> and what can I do so? I read some webpage where it recommended to do that, also with the IP and check both <17> I am using the rawurlencode function in a situation where it is returning more chars then I asked, I am p***ing this a+[{]}\| and it is returning this a%2B%5B%7B%5D%7D%5C%5C%7C, note that there is an extra %5C. Any idea? <15> I just want that if I enter my web with an user and correct p***word I can see things that others cant with some checkadmin() function, what is the best way to do this? <10> ksyms: It's escaping the backlash --> a+[{]}\\| <18> ksyms: where does that data come from? a GET var? <17> Jymmm and ||cw it's coming from a GET <17> true <18> ksyms: then you have magic quotes on <10> ksyms: It could be coming from your butt for all that anyone cares. It's still escaping the backslash. HAve you checked if magic quotes is enabled? <17> magic quotes is enabled and there are old systems there, so I can't turn it off. Is it possible to turn it off in a specific page? <10> !+magic quotes <7> i guess magic quotes is http://php.net/manual/en/ref.info.php#ini.magic-quotes-gpc <19> DogWater: One reason to do so is to have shared sessions when you have multiple webservers behind a load balancing switch <14> You could just use sticky connections on your load balancer and not have it overload your servers. <14> which would probably be a better idea <20> is there a function that gets a string ready to be added to mysql? that puts \'s infront of quotes, etc? <21> hi <18> otiuk: mysql_real_escape_string() <21> sha1 encryption is pretty much unbreakable, right? <18> Jymmm: that would be a case for storing the whole sesison in the db, not just the id <10> SHA1/MD5 IS ***NOT*** ENCRYPTION <21> fine, call it what ya want <18> hashing <21> changing what something says so if you read it its not what it was to start with <22> http://news.yahoo.com/s/ap/20060410/ap_on_go_pr_wh/election_phone_jamming <22> damn the man <18> encryption implies decryption, which a hash cannot be <21> so that pretty much answers the question <21> ok <21> damn <18> and sha is unbreakable for now <22> dont use mysql's aes encryption <22> if you want SECURE encryption <21> yeah encrypting the stuff isnt the problem <21> we have an intern trainee server tech <22> mysql aes ecnryption is sploited <21> who encrypted a backup <21> and now we need the backup <22> lol
Return to
#php or Go to some related
logs:
xkali ubuntu PHP_SELF injectable gd5480 cirrus logic fedora #lisp loadlin net-drivers.img drm.ko needs unknown symbol
#linux #php #ubuntu burn daa linux
|
|