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



Comments:

<0> heh
<0> yawg: echo getcwd()
<0> yawg: That's what ./ is
<1> Bezdelnik, Yes, where you are getting your info from
<1> sorry, was int another window
<2> well, mainly just the web... and the phparch book on patterns
<0> Heh
<0> Don't mimic MVC frameworks.
<0> Learn the pattern.
<2> but the info doesnt really show much about how to deal with real life situations
<1> ain't that how books are supposed to work :P
<3> It would be ok with you if we discussed some security coding strategies in the future? I'm interested on such subjects
<0> A problem with some PHP MVC frameworks is that they try to mimic other frameworks and end up like ****.
<2> well yeh... but thats why i thought id get some advice here
<1> well here's another link for you to read that is short and succinct imo: http://www.phppatterns.com/docs/design/archive/model_view_controller_pattern and then http://www.phppatterns.com/docs/design/mvc_pattern_version_2
<4> The inner Hashtable has two keys - status and cl***key



<4> {atestdomain.com={status=regthroughothers, cl***key=domcno}}
<4> How would I find out why the domain is
<4> That's how the array is stored
<2> ds
<2> read both of them :)
<1> The biggest think to be aware of is making sure you are keeping your dependancies in the right spot
<2> i just would of thought that if your creates models within models thats turning yoru models into ... more containers i guess...
<2> i mean controllers
<1> not at all
<2> as far as i know its controller that should create models
<2> thats what i read so far
<1> it should, but that's not an exclusive to just controllers.
<2> everywhere its the controller handling the webrequest , and creating a module and p***ing it processed data
<2> ds... im not disagreeing with you.. just sharring my observations with the information ive encountered
<1> That's because most examples deal with extremely simple models :/
<1> I understand
<2> ds... ok, ***uming the permission model can create other models etc... , can it do the same with views
<1> try to look at it from more of a layers perspective
<1> no, you don't ever want models creating views
<2> ok... one sec
<2> so in a situation where i need a page that displays a select box of groups... and a set of permissions you select the group and set the permissiosn for that group
<2> the view cl*** needs access to the group object
<2> what if the permission also needs to display your basic group information which is a view of the group object...
<2> do you see where im going with this?
<5> when logging site stats, which would probably be better.. saving fancy manipulated data, or raw user agent data?
<2> march raw
<6> can an array of an object be instantiated within one of that object's functions and then returned as the object array?
<6> wait, that doesn't make sense
<1> Bezdelnik, give me a second...that's a mouthful
<2> lol
<2> take 2 :)
<1> I am not sure I understand that, but how I would display the page in THAT instance is I would instantiate a permissions object, get a list of all the permissions, instantiate a group object, get a list of all the groups, and then p*** both model objects to my view object
<2> hmmm, so in this situation your views would be duplicated in the case where group data would need to be displayed
<1> no, one view could handle both models
<2> since the template for group info would be the group view (not used in this case) and in the permission view (where it would be used)
<1> 1 view can handle multiple objects
<2> but one object shouldnt need to have multiple views defined if they are the same...
<2> then if the group object changes... i have to modify the permission view
<2> or any other object to which group object is p***ed to
<7> is there a way to autogenerate variables ? like $a1, $a2 etc ??
<2> any other view i mean to which the group object is p***ed to
<3> using the same code, or adding removing/modifying?
<3> quote "then if the group object changes... i have to modify the permission view"
<3> ?
<7> ?
<2> well, you p*** the group object to permission view...
<2> if it changes y ou have to change the permission view
<1> you mean code changes right?
<2> maybe if there was a way for the permission view to use somehow the group view or (some subsection of the group view... )
<2> ds yeh...
<2> sorry i have a meeting
<1> that's to be expected
<3> what about html generation, how it fits in there?
<2> back in half an hour or so
<7> is there a way to autogenerate variables ? like $a1, $a2 etc ??
<3> for me, html generation make the code dirty
<2> thanks guys hope your still here when im back :)
<3> even if using templating
<1> I won't be
<1> are you registered on nickserv
<8> who here uses x-debug ?



<7> ok, can anyone tell me a function, a page or something ? google isnt helping much
<9> is global $var; in a function the same as $var=$GLOBALS['var']?
<7> bashusr: are you asking me :| ?
<9> no.
<9> asking ##php
<1> bashusr, yes
<9> qatsi: what's your question?
<10> Content-type: text/xml; ? that right?
<7> bashusr: i need to auto generate variables, somthing like $a1, $a2, $a3 etc..
<1> qatsi, take a look here: http://www.php.net/manual/en/language.variables.variable.php
<9> qatsi: sounds like an array might be better than trying to create variables randomly
<9> you'll most likely loose $a353535
<8> how do i turn on x-debug
<8> like activate it
<7> ds-: thanx, ill take a look
<7> bashusr: uhmm, ill look at it too :) thanx :D
<11> What is the difference between $_REQUEST and $_POST
<0> joseph: php.net/variables.predefined
<7> http://www.php.net/manual/en/language.variables.predefined.php
<5> when logging site stats, which would probably be better.. logging fancy manipulated data, or raw user agent data? anyone?
<11> Which is better to use?
<9> raw
<0> joseph: That depends on your needs.
<0> joseph: There isn't a "which is better"
<9> TheoCode: raw always can be parsed...
<9> raw is _mostly_ useless... until parsed...
<9> but if the hacker did something and you only got fancy stuff
<9> you won't ever get the hacker's ip address without that raw data
<3> joseph, REQUEST is general... $_GET, $_POST, and $_COOKIE in one
<11> Oh.
<3> it has disadvantages because you can lose track of where the data is coming from
<1> bye bye
<3> better to use $_POST, $_GET, etc
<0> ...and if joseph had read the php.net/variables.predefined, we'd all be happy.
<0> !+fish
<12> 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.
<3> Yeah, I new that, but maybe he would not have realized about that tracking info *is* important
<3> But hey joseph, learn to fish...
<3> you could have a good dinner then
<11> Problem is.. Dinner was due 8days ago.
<3> Oh god, I hate html...
<13> can anyone help me on this? http://pastebin.com/631930 not sure why it wont let me use {} in double qoutes...
<5> thanks everyone for the help :)
<13> ack nvm ~_~
<3> so... why dont you use this? return overlib(".$row['botName'].")
<3> or just...
<14> is there a way to auto remove all comments from code?
<3> overlib($row['botName'])
<13> danf_1979: no I was missing a () in my if so when I called { foo bar died over and confused me
<3> My dog ate my food...
<0> sutabi: That is ugly with all that \" escaping anyways.
<13> kuja: im soo lazy to use HEREDOC
<0> $row['botName'] = sprintf('<a href="javascript:void(0);" onmouseover="return overlib('%s');" onmouseout="return nd();">IE Broswer</a>', $row['botName']);
<0> Or if you prefer, just concatenate.
<15> is there a way I can change a string like "Foo Bar" into "Foo\ Bar" ?
<0> str_replace('Foo Bar', 'Foo\ Bar'); ... maybe?
<13> str_replace(" ", "......
<0> Unless you will get more specific.
<13> dammit kuja
<0> ;)
<15> kuja, well, i meant escape characters in general.. :(
<0> existance: Yes, you may still use str_replace() for that.
<16> sutabi: You need to be light on the keys when kuja is around. ;)
<15> kuja, i'm executing a python command with it and if the filename is screwy it messes up.
<0> [RainMkr]: Mwaha :)
<16> heya kuja, ltns, how are things>?
<0> existance: escapeshellarg() maybe
<0> [RainMkr]: It's good, just at home bored all day. How's about you?
<16> kuja: I'm home every day, but rarely bored. :)
<15> kuja, :D
<0> Haha, workin' from home? Or with the lady?
<15> kuja, i love how there is a method for everything in php :D
<0> :)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

datska
subselect datatable
python telnetlib cntrl
javascript getElemenetById
#gentoo
#gentoo
#mysql
Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solu
ifup: couldn't read interfaces file /etc/network/interfaces
#perl



Home  |  disclaimer  |  contact  |  submit quotes