Re: [PHP] Parsing database variables



Chris Boget wrote:
But this is a much better way of doing this than using eval(). eval
is an evil little function!

eval() isn't so bad if you have absolute, total and complete control
over the data you are pulling or using.

it remains bad if there is another way to do the same thing. eval() is the
matchete you use as the last resort when your backed into the corner by a group
of hungry zombies ... unless you have a zombie problem keep your machete holstered ;-)

having absolute, total and complete control over the input to eval() is the
entry price for even thinking of using it.

ok this is slight scare mongering but the fact remains: eval() is capable of
causing you serious damage and it's also comparitively slow!

But once someone else becomes
involved (particularly the front end user), you are probably better off
looking at alternatives.

thnx,
Chris

.



Relevant Pages

  • RE: [PHP] Parsing database variables
    ... is an evil little function! ... evalisn't so bad if you have absolute, total and complete control ...
    (php.general)
  • Re: G Arc codes
    ... A typical and simple arc in the XY plane would be something thus. ... G code states I J & K can be either absolute or incremental. ... This is control dependent. ...
    (alt.machines.cnc)
  • Re: Web page absolute positioning
    ... Microsoft dropped support for multiple selection in VS 2008. ... Absolute addressing is included in VS 2008 but it's not as rich as ... Following your lead I could not find the position property for controls, ... can set the control positioning to absolute. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Absolute vs Incremental 3D programming
    ... Fanuc 18i control for which we do not have a post processor which ... means I'm in the process of tweaking a stock generic Fanuc post, ... 3D tool paths in anything but absolute, ... Set the control to accept 5 decimal place input. ...
    (alt.machines.cnc)
  • Re: Some days are just too sweet ! :0)
    ... > that they are absolutely in control of the process (i.e. entering and ... > with absolute certainty,,, there is no doubt as to the successful outcome ... IMHO this concept of control is the key to the Zen of piloting. ...
    (rec.aviation.student)