self-changing source code?

Discussion in 'HTML & Website Design' started by violinboy, Dec 28, 2008.

  1. #1
    I am wondering if it is possible in HTML, Javascript, (or something related) for a program to do any of the following:

    1. alter its own source code (not during run-time, but upon exiting)
    2. alter the source code of another document/program
    3. create or delete another document/program

    Thanks!
     
    violinboy, Dec 28, 2008 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    YES its possible

    ask yourself WHY you want to do such
    then if good reason learn howto

    so far it sounds very much like hacker question howto destroy site / pages ..

    if you have good and valid reason to accomplish above on your own site / server
    then you also find the time to learn proper coding / google to find solution.
     
    hans, Dec 28, 2008 IP
  3. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #3
    what program are you using to 'edit' your code?

    Many programs like Dreamweaver or NVU, Microsoft Expression web, Frontpage, they will mess with your code.

    If you use software like jEdit or notepad++ or TextMate they will not alter anything you type.
     
    innovati, Dec 28, 2008 IP
  4. violinboy

    violinboy Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey guys, thanks for the reply.
    Hans: funny! I'm not planning any hacking or destruction... I'm experimenting with some cryptography ideas and mathematics, limited to the confines of my home computer. In terms of google, as you suggest, I was just hoping for some pointers on terminology to search with.
    Tom: I've been starting from scratch with a basic plain-text application, because as you say, it lets me do what I want.
     
    violinboy, Dec 28, 2008 IP