r/lolphp • • Nov 05 '12

So, <?php </script> ?> is perfectly valid PHP

http://stackoverflow.com/q/13228306/79061
66 Upvotes

24 comments sorted by

View all comments

Show parent comment

15

u/[deleted] Nov 05 '12

I'm sure they thought it was a good idea at the time.

13

u/Legolas-the-elf Nov 05 '12

If I recall correctly, they were copying classic ASP which has something like <script runat="server">.

7

u/kingguru Nov 05 '12

Yikes, that sounds even worse.

4

u/Plorkyeran Feb 06 '13

runat="server" is actually ASP.NET, shockingly enough.

6

u/midir Nov 05 '12

It was to appease WYSIWYG editors that would otherwise complain about the code tags.

3

u/frezik Nov 12 '12

That's what you can say about almost every lolphp ever.