01-23-2014, 12:39 AM
It's realy fun to mess around with the socket library
I now created a webserver. I even managed to implement a hook system. I currently have 3 hooks. HOOK_NO_FILE, HOOK_ON_CONNECTION and HOOK_STARTUP. Also just like with php you can add tags and add code there. This is an example:
I now created a webserver. I even managed to implement a hook system. I currently have 3 hooks. HOOK_NO_FILE, HOOK_ON_CONNECTION and HOOK_STARTUP. Also just like with php you can add tags and add code there. This is an example:
<html>
<b>TEST!</b>
<a href="test2.lua">Link</a>
<LUA>
for I=1, 100 do
echo("<br>" .. I)
end
</LUA>
<b>TEST2!</b>
<form>
<LUA>
echo "<br />"
for I=1, 5 do
echo('<input type="button" value="'..I..'" name="Hoi">')
end
</LUA>
</form>
</html>

