Menu

[r467]: / phprpc_2.1 / sample / server.asp  Maximize  Restore  History

Download this file

21 lines (18 with data), 434 Bytes

<%@ CodePage = 65001 %>
<script runat="server" language="JScript" src="/phprpc_2.1/asp/compressed/phprpc_server.js"></script>
<%
function add(a, b)
    add = a + b
end function

function subtract(a, b)
    subtract = a - b
end function

function get_array(n)
    redim a(n)
    for i = 0 to n
       a(i) = i^2
    next
    get_array = a
end function
phprpc_server.create(Array("add", "subtract", "get_array"))
%>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.