| |
| |
| |
|
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
Comments:
<0> thats the "right" way to do it now <0> :P <1> I cant think of a way to link up a directory full of cl***es <1> all into 1 var like $core <2> redalpha: you can store an object in another object <1> ? <3> niraj, what does this mean? :O Fatal error: Call to a member function on a non-object <1> lol basix <2> redalpha: cl*** core { fuction __construct() { $this->obj1 = new Obj1; ... <3> redalpha, whatcha laughin' 'bout? <1> ur kidding right ? <4> basix: the object you are trying to use hasn't been instantiated <1> You really didn't know ? <2> basix: it means what it says, the function you are colling is not a meber if the object you are using <4> no, it's a non-object
<4> thus, it hasn't been instantiated <0> it's saying the object doesn't exist <5> is there anybody that can say how do i strip \n from inside "tags" {<{ and }>} <2> basix: but it also depends on the actual code <3> wtf? php is foolish. its broken. insane even. i have instantiated the object! Heck the code above even calls several methods of that object :O <2> basix: post the code <0> basix: post the code at pastebin.com and let us check <4> basix: if that is true, then it's probably a typo <0> i doubt php is the problem <3> but shouldn't a typo generate a parse error? <4> no <2> no <2> not always <6> Yo ho ho <2> well, mit should if you have NOTICE level errors enabled <7> h0h0h0 <6> Is there a way, using php, to write files that are opened in Open Office or Mcirosoft Office? <6> (wiuth proper formatting) <6> Right now the only thing I know is to fwrite some text and rename it... lol <2> which you should on a devel system, but maybe not on a production system <6> Not a good solution <2> Kcaj: I think there's a cl*** that will to RTF, check pear.php.net and freshmeat.net <6> Sounds fantabulous <6> :D <6> Thanks mate <8> woof! <3> aha! just as i suspected! a stupid error in my code caused php to crap up! :) <8> basix: So it's still a user error. <2> well, yeah <3> Stormchaser, no. It's a stupid user error. <8> AS said. <5> where are all the people that can help? <9> does SHA1 uses characters like "_-/\?@" when generating a SHA1? <0> Madeye: no <0> Madeye: sha1 returns a hexadecimal string <9> niraj, so it's only letters and digits <9> ah <9> cool <2> "user" implies "stupid" :P <8> niraj: no, that's hex representation of SHA1. Just like MD5... <0> Stormchaser: yes, but that's what the sha1() function returns <3> a stupid question: does PHP support structs? <8> niraj: True. <0> basix: not that i know of <3> :( <10> hi. does anyone know an smtp mock for php? <11> having some issues with utf8 + phpMyAdmin - specifically characters come out garbish unless I utf8_decode values before inserting <12> when i execute a query grant to add privilegies <2> basix: you can use an ***ociative array to achive the same thing as a struct <8> basix: IF you are thingikng of C++-like struct, the object is pretty close... <2> basix: or just use a cl*** <12> why for every at the end of a session i loose that <13> I am verifying email-addresses by sending an email, user clicks on link with random hash. Would you consider it insecure to also automaticly login the user (only one time) after the email has been verified using the hash? <3> sandstrom1, yes <11> not more insecure than the user allowing someone else to access his mail <3> ||cw, no! not ***ociative arrays. i am using too many of them. <2> sandstrom1: with a check for the cookie you made when they created the account, not so much
<2> basix: all arrays in php are actualy ***ociative <3> Stormchaser, i'll prolly use a cl***. but nested cl***es aren't my thing :) <2> basix: in fact, they are not really arrays as such <2> but more like hash tables <14> sandstrom1: It's only as secure as you think email is. If that's good enough for you, then OK. If there's money or personal information involved, I wouldn't. <11> there is nothing inherently insecure about email, as long as you send using TLS <13> If I require a p***word only the same person who signed up could login, so even if somebody write in the wrong email it would be no damage.. <6> What does an array look like when making a function? <13> it would make it easier for the customers.. but on the other hand if the email goes astray, then someone can login (once) without p***word. <2> it's amazing what even banks take as "secure", for instance, an account number, address, and SSN will get you full online bank access with no other verification <6> function input_select($element_name, $values[], $values2[]){ <6> uncorrect <6> :O <13> I am not really sure, thats why I am asking. Very thankful for the feedback.. <14> Mazon: You can send it TLS, but you don't know what authentication the server allows for email recipients. <11> true <2> however, Walgreens won't give you online access without smail-mailing you a p***code <11> but one could discuss to sunset who is at fault in that case <11> however the end user might have security issues - so yeah - best not <6> How do I p*** an array in to a function? <13> I think I will go with what you said ||cw if they got the cookie, then they are automaticly logged in (only once, since they are only supposed to verify their email once) but if they (for some reason) dont got the cookie the are required to login. <15> lo <3> sandstrom1, no. if the email goes astray then the guy can login once and change the p***word. then he has full access to the account for as many times as he likes... <11> not if you can't change p***word without old p***word <13> basix true..(although they wont be able to change p***word)... but if I do as ||cw said, checking for a cookie set at sign-up I should be fairly safe. <3> sandstrom1, ok <13> Thanks for the feedback everyone, I appreciate it! <2> what bugs me is the systems where you get emailed a hash and then set your p***word after clicking that link, and then still have to manualy login <3> np <16> Guys, if someone enters their username and p***word for .htp***wd protected folder.... how Can I clear that out of his catch <17> ntengineer22: try http://invalid@example.com <16> CryWolf: what do you mean.. <17> ntengineer22: use a different username in the url, to force a relogin. <16> CryWolf: oh ok, thanks <18> I have made a little printarray() function which prints key,value for each key, and if the value is an array and $recurse is true, calls itself on the value. Handy debug thing. But my question is, why the heck isn't this already part of php? Like Python's dir()? I think it must be, but I can't find it. <19> try print_r() <19> ;-) <19> if you add echo "<pre>" in front of it <19> and "</pre>" after it, it prints very nicely <18> well it's quite certainly nicer looking than mine :> thanks <2> dobson: and it also handles objects <19> yes, and recursive arrays ;-) <20> dobson, i wrote a funciton in my framework so if i have 'debug' turned on, i can add debug=true to the qstring and it dumps that data... works really nicely <21> dobson: you can also use this tool: http://www.zend.com/codex.php?id=1352&single=1 <22> indolent, where to get your framework? <20> i havnt published it yet.. im going from 4 to 5, and still workign on it <20> its going to be 'phpSimple' <20> basic DB acces, simple template system, debuggin, xML etc. <20> nothing like the 'big' guys.. useful for my needs <23> indolent, how do you simplify xml access? <20> similar to php5's simpleXML <20> actually i wrote it in 4, and simple XML kinds is the same thing <20> $lib->xmlparse($file); <20> or write xml based on an object or ***oc array <23> you then get an array of all xml elements back? <20> again 'SIMPLE' not complext stuff. just what ive needed for my projects <23> sure :) <20> or an object depending on your needs <1> I really dont understand it :D vbulletin has almost all their functions bundled into $vbulletin, multiple cl***es, i can load all cl***es out of a directory and ***ign them, but i cant ***ign them into one. <23> btw, i also use something like your ?debug <23> idd a nice way of debugging <20> the new one im workign on now you can take XML->SQL .. since mysql5 dumps to XML that part is obsolete now too <22> why didn't you release it sooner? ;) <23> mine is based on the tutorial on smarty.php.net <20> honestly, afraid of 'Experts' belittling it <20> its messy - the old one, the one im workign on now is good OOP <20> but its not complete yet <20> i wil release it when i fifnihs up all the pieces <24> hey when escaping quotes.. is it "\ $hello "\ <24> right? <20> -- \" <22> try to get faster than the php/mysql developers this time ;) <24> thanks <23> actually the best way is to do a framework yourself, if you use someone else's it's always a bit of pain
Return to
#php or Go to some related
logs:
#kde #linux debootstrab howto sarge VT XEN Vista onenigger
#perl graphic install doesn't work in fedora 5 metrix livecd rausb and linux Ram ixMap
|
|