Page 2 of 2

Posted: Thu Jul 13, 2006 2:00 pm
by alex.barylski
Just to add to what Feyd has said...

Polymorphic code is usually refered to as code which changes dynamically...

Viruses have been know to do this...to change their signature so scanners had a difficult time detecting them...

Although what you have described is not so much polymorphic code as it is emulating a compiler compiler, taking one language to write another is generally referd as just that.

Using PHP eval() would be more analogous to polymorphic code...although I would personally technically, it's the ability to dynamically execute code.

You would have to pysically change your PHP source text before I would call it polymorphic...

Just my 2 cents

Posted: Thu Jul 13, 2006 2:11 pm
by Luke
I just think it's cool dynamically writing javascript... never really done it before. Check it out: (I know it needs some work and it doesn't work in IE yet, but still cool!!)

http://www.mc2design.com/google/

It's pulling coordinates for those counties from a database and writing the javascript... way cool IMO

Posted: Thu Jul 13, 2006 2:49 pm
by Chris Corbyn
Daedalus- wrote:I was thinking about using PHP to do the math I wish I could do in CSS when I deal with absolute positioning.
I think that's what DHTML is for, although your page would (possibly) break if JS was disabled.