tags:

views:

120

answers:

4

I'm learning PHP. The PHP has inline commands in HTML code to produce dynamic HTML output.

<div>
    <?php echo 'hello world'; ?>
</div>

In Java and .NET world, there are similar syntax to have commands in HTML.

I'm wondering what is the first language or platform have this kind of syntax. Having dynamic code embedded in HTML code and generating dynamic HTML code.

+1  A: 

AOLserver supported inline Tcl in that way back in 1994. For an example of how it looks, see the Writing Your First ADP tutorial. Also, Phil Greenspun has an excellent Introduction to AOLserver written in 1999.

Greg Hewgill
PHP is born in 1994. Which is earlier?
Morgan Cheng
@Morgan: According to the official history it is 1995 ... see my post for the link.
Obalix
+1  A: 

The first I have come across have been Server-Side Includes. They have been introduced in the NCSA web server version 1.2, in 1994.

Before that, they had a simpler system using INC SRV tags, like <inc srv "|date"> to include the current date. The oldest reference to that I could find was a question on a mailing list, dating back to November 1993.

Thilo
+4  A: 

First releases of

Obalix
What about JSP?
Morgan Cheng
The first version of JSP was released in 1999.
Thilo
If you’re collecting information from other answers, you should make your answer community wiki.
Gumbo
Good idea - it is done.
Obalix
What's the community wiki URL?
Morgan Cheng
A: 

And by time we have learned that inline html isn't that good :)

Col. Shrapnel
What makes you think this?
waiwai933
Spaghetti code makes me think this. The only use of the inline PHP is template. But there are tons of other templates. So, we can easily manage our apps without inline PHP while we have a sh*load of spaghetti code, unsupportable and dirty.
Col. Shrapnel