Windows Web Scripting Comparison

Coordinator
Mar 14, 2011 at 4:19 PM
Edited Mar 14, 2011 at 4:25 PM

Windows Web Scripting Comparison

Coordinator
Jan 3, 2012 at 2:00 AM
Edited Jan 7, 2012 at 2:23 PM

I did a little comparison of PHP, ASP.NET, AVFP.  It's really remarkable how similar they are at a basic level (especially ASP.NET and AVFP):

<%= ****hello.avfp**** %>
Hello world from
<%=version()%>
<%=DATE()%>  <%=Time()%>
<%=IIF(ISNULL(oRequest.Querystring("name")),[hello from the fox],[hello from ]+ oRequest.Querystring("name")) %>
-----
<%-- hello.aspx  - this is really basic asp.net, nothing fancy--%>
Hello world from .NET version <%=System.Environment.Version.ToString() %>
<%=now()%>
<%if Request.QueryString("name") <> "" then %>
  hello from <%=Request.QueryString("name")%>
<%else%>
  hello from ASP.NET
<%end if%>
-----
<?php /* php hello.php */  ?>
Hello world from PHP version
<?php echo phpversion() ?>
<?php echo date('l jS \of F Y h:i:s A') ?>
Hello from
<?php
if (!empty($_GET['name']))
   echo $_GET['name'];
else
   echo "PHP";  
?>
RESULTS------------------------------------------------------------------------------------------------------------------------------------------------------
http://localhost/5.6test/hello.avfp?name=bob
returns:

hello world from
Visual FoxPro 09.00.0000.5815 EXE Support Library for Windows
01/02/12 14:18:33

hello from bob

-------------------

http://localhost/5.6test/hello.aspx?name=bob
returns:

Hello world from .NET version 4.0.30319.239
1/2/2012 2:19:05 PM

hello from bob

------------------

http://localhost/5.6test/hello.php?name=bob
returns:

hello world from PHP version 5.3.8
Monday 2nd of January 2012 02:27:17 PM

Hello from bob