Welcome on IPSCRIPT web site

(Internet Delphi Scripting Language)

juil./16/2014 - Release of ipScript version 4.94

subscribe to IPScript mailing list

What is IPSCRIPT ? Installing on Apache server
Online manual Upcoming developments
FAQ Download
Links using IPSCRIPT Contact us
History (in French only)

What is IPScript

IPScript is a delphi compatible compiler for html page. You can put delphi code between the tags <% and %> and the code will be compiled and run at the server side.

HTML pages containing ipscript source code must have .ips extension.

When a browser calls one of these pages, the http server calls our compiler with the html page as parameter.

If compiler checks if it is necessary to compile the page (updated since last compilation), and in such case starts the compilation of the page and store it in a .IPC page. The compiler produces an assembler code that could be runed by ipscript's executor module.

IPScript language is really close to delphi language, except somes changes like :

You can use procedure, function, global and local variables, etc.

It's easy to make dynamic site with ipscript, there is many tools like :

Ipscript is an isapi dll including the compiler and the virtual machine. It's using databases with DBISAM from ELEVATE SOFTWARE (http://www.elevatesoft.com). You can read and store data from database table simply and quickly with SQL request. You can retrieve and ouput data in html format with no more than 3 lines of code !

Here are some ipscript examples :

Example 1 :

(to be saved in ex1.ips)

<html>
<head><title>IPScript example 1</title></head>
<body>
This is ipscript sample code :<br>

<%
Script;
Var I;
Begin
For I: = 1 to 100 do Echo('Hello #'+I+'<br>');
End;
%>

</body>
</html>

This sample outputs 100 lines of "Hello" with for each line the line number.

 

Example 2 :

(to be saved in ex2.ips)

This si another example with a recursive function to calculate "factorielles" (I don't know the english name for Fact(5) = 5x4x3x2x1)


<html>
<head>
<title>Example n°2</title>
</head>

<body>

<form action="ex2.ips" method="post">
Input a number between 1 and 20 :
<input type="text" name="nombre">
<input type="submit" name="calculer" value="calculer">
</form>

<%

Function Fact(N);
Begin
If N = 1 Then Result := 1
Else Result := N * Fact(N-1);
End;

Script;
Var I;
Begin
If InParms('Nombre') Then
If Parms('Nombre') > 0 and Parms('Nombre') <= 20 Then
Begin
For I := 1 to Parms('Nombre') do
Echo('The result for '+I+' is '+Fact(I)+'<br>');
End
Else Echo(Parms('Nombre')+' is not between 1 an 20 !');
End; { Script }

%>

</body>
</html>

 

Exemple 3 :

(to be saved in ex3.ips)

This is an example of use of database, it publishes the table content using SQL query.


<html>

<head>
<title>Example n°3</title>
</head>

<body>
<h1>C:\MATABLE.DAT content</h1>

<%
Script;
Var Q;
Begin
SqlAssignDB(Q, 'c:\'); // assign query object and log to database folder c:\
SqlQuery(Q, 'select FirstName, LastName, Date from matable');
If SqlExec(Q) Then // execute the query
  If SqlFirst(Q) Then // if there is a record in the dataset ...
    Begin
    Echo('<table border="3">');
    Repeat
      Echo('  <tr>');
      Echo('    <td>'+SqlField(Q,'FirstName')+'</td>');
      Echo('    <td>'+SqlField(Q,'LastName')+'</td>');
      Echo('    <td>'+DateToStr(SqlField(Q,'Date'))+'</td>');
      Echo('  </tr>');
    Until not SqlNext(Q);
    Echo('</table>');
    End
  Else Echo('The table is empty.')
Else Echo('Can''t execute the query: '+SqlError);
SqlFree(Q); // release query object's memory
End;
%>

</body>
</html>

Installing IPSCRIPT on an Apache Server

Use install.txt file in the distribution package

Upcoming developments


FAQ

Is it a compiled or interpreted language ?
IPScript is a true compiled language. Generated code is executed by ipscript executor like an assembler is executed by a processor. The source code is only compiled if it changes since the last compilation.

May we use database ?
YES, IPScript adds to it language all procedure and function to use databases. ipscript can use MYSQL, ORACLE, FIREBIRD, PROGRESQL, MS-SQL-SERVER and DBISAM databases. DBISAM is from elevate software (http://www.elevatesoft.com). IPScript allows image outputs from table and automatic convertion to jpeg format. Date and time are managed with DateToStr, TimeToStr and FormatDateTime (syntax is Delphi compatible).

Is there an integrated development environment for IPScript ?
YES, it is IPSTUDIO. You can write and compile html page with ipscript source code directly from the editor. It include an Internet Explorer window to check your programs. You can download it from the Download section.

 


Download

Please read the licence agrement BEFORE downloading and using ipScript : Licence agrement

compiler/script engine - ipScript version 4.94

Now it includes ipStudio, the ipScript's editor including syntax highlight and syntax check.

compiler/executor IPScript 2.2.1 ISAPI

Now it includes ipStudio, the ipScript's editor including syntax highlight and syntax check.

Links using IPSCRIPT

ipScript on line manual

How to contact us

Ace Informatique sa
www.aceinformatique.com
www.fastmag.fr
32 rue d'Armaillé - 75017 PARIS - FRANCE
Phone +33 (0)1 55 26 08 00
Fax +33 (0)1 55 26 08 01