Files
harbour-core/harbour/contrib/examples/hscript
Viktor Szakats f02145dc30 2008-05-21 15:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/bld.bat
   * bin/bld_os2.cmd
     ! Removed trailing backslash from default Harbour bin dirs.

   * contrib/hbapollo/make_b32.bat
   * contrib/hbapollo/make_vc.bat
   * contrib/hbfbird/make_b32.bat
   * contrib/hbfbird/make_vc.bat
   * contrib/hbfimage/make_b32.bat
   * contrib/hbfimage/make_vc.bat
   * contrib/hbgd/make_b32.bat
   * contrib/hbgd/make_vc.bat
   * contrib/hbhpdf/make_b32.bat
   * contrib/hbhpdf/make_vc.bat
   * contrib/hbmysql/make_b32.bat
   * contrib/hbmysql/make_vc.bat
   * contrib/hbodbc/make_b32.bat
   * contrib/hbodbc/make_vc.bat
   * contrib/hbpgsql/make_b32.bat
   * contrib/hbpgsql/make_vc.bat
   * contrib/hbw32ddr/make_b32.bat
   * contrib/hbw32ddr/make_vc.bat
   * contrib/hbzlib/make_b32.bat
   * contrib/hbzlib/make_vc.bat
   * contrib/rddads/make_b32.bat
   * contrib/rddads/make_vc.bat
     ! Fixed to handle long *_DIR settings in those 
       contribs where external packages are required.

   * contrib/gtwvg/tests/bld_b32.bat
   * contrib/gtwvg/tests/bld_vc.bat
   * contrib/hbapollo/tests/bld_b32.bat
   * contrib/hbapollo/tests/bld_vc.bat
   * contrib/hbclipsm/tests/bld_b32.bat
   * contrib/hbclipsm/tests/bld_vc.bat
   * contrib/hbct/tests/bld_b32.bat
   * contrib/hbct/tests/bld_vc.bat
   * contrib/hbfbird/tests/bld_b32.bat
   * contrib/hbfbird/tests/bld_vc.bat
   * contrib/hbfimage/tests/bld_b32.bat
   * contrib/hbfimage/tests/bld_vc.bat
   * contrib/hbgd/tests/bld_b32.bat
   * contrib/hbgd/tests/bld_vc.bat
   * contrib/hbgf/tests/bld_b32.bat
   * contrib/hbgf/tests/bld_vc.bat
   * contrib/hbhpdf/tests/bld_b32.bat
   * contrib/hbhpdf/tests/bld_vc.bat
   * contrib/hbmisc/tests/bld_b32.bat
   * contrib/hbmisc/tests/bld_vc.bat
   * contrib/hbmysql/tests/bld_b32.bat
   * contrib/hbmysql/tests/bld_vc.bat
   * contrib/hbnf/tests/bld_b32.bat
   * contrib/hbnf/tests/bld_vc.bat
   * contrib/hbodbc/tests/bld_b32.bat
   * contrib/hbodbc/tests/bld_vc.bat
   * contrib/hbole/tests/bld_b32.bat
   * contrib/hbole/tests/bld_vc.bat
   * contrib/hbpgsql/tests/bld_b32.bat
   * contrib/hbpgsql/tests/bld_vc.bat
   * contrib/hbtpathy/tests/bld_b32.bat
   * contrib/hbtpathy/tests/bld_vc.bat
   * contrib/hbvpdf/tests/bld_b32.bat
   * contrib/hbvpdf/tests/bld_vc.bat
   * contrib/hbw32/tests/bld_b32.bat
   * contrib/hbw32/tests/bld_vc.bat
   * contrib/hbw32ddr/tests/bld_b32.bat
   * contrib/hbw32ddr/tests/bld_vc.bat
   * contrib/hbzlib/tests/bld_b32.bat
   * contrib/hbzlib/tests/bld_vc.bat
   * contrib/rddado/tests/bld_b32.bat
   * contrib/rddado/tests/bld_vc.bat
   * contrib/rddads/tests/bld_b32.bat
   * contrib/rddads/tests/bld_vc.bat
     ! Fixed to honor HB_*_INSTALL envvar settings in 
       bld_*.bats for /tests

   * contrib/examples/hscript/dir.hs
   * contrib/examples/hscript/bld_b32.bat
   - contrib/examples/hscript/makehtm.bat
     * Cleanup.

   * contrib/rddads/rddads.h
   * contrib/rddads/adsfunc.c
   * contrib/rddads/ads1.c
   * contrib/rddads/adsmgmnt.c
     * Header cleanup, minor code opt.
     * ADS_REQUIRE_VERSION==8 is now equivalent to 
       ADS_LIB_VERSION=810. Brian suggested this is what 
       the majority of users need. See next however.
     * ADS_REQUIRE_VERSION compatibility handling 
       disabled to make usage and support more 
       straightforward. I'd suggest everyone to remove 
       any old ADS_REQUIRE_VERSION settings, if - and only 
       if - there is a need to force an older version, 
       ADS_LIB_VERSION=??? should be used, where ??? is 
       810 for ACE 8.11 (for example).
2008-05-21 11:45:42 +00:00
..

WARNING
-------

This document has serious bugs related to English Language.
I take no responsabilities for any misinformation in any form.
<GG>


HarbourScript Alfa Edition
--------------------------

Inside this zip file you will find HarbourScript package. This
should be unzipped to TESTS\WORKING\HSCRIPT directory in order
to work w/o any changes.

To make the HarbourScript Translator, hscript.exe, use MAKEHS.BAT.
If you are going to test offline, there's no need to make it,
it will be done automatically for you (Batch Power<g>). To test it,
you'll have the following options:


Testing HarbourScript using MS-Personal Web Server
--------------------------------------------------

(and maybe IIS 3.0+ too!)

1. Copy hscript.exe and harbour.exe to your cgi-bin directory
(or any other with Scripting allowed)

2. Copy all the scripts that you want to the same directory

3. You can now test Harbour Script using
http://localhost/cgi-bin/hscript?script=<script>.hs

Note: The hscript.exe program still locks the server sometimes.
This is due to external compilation of the resulting code. As
soon as we start to use macro substitution instead, this will
become more stable.


Testing HarbourScript without a Web Server
------------------------------------------

1. Make the sample scripts with MAKEHTM.

2. Browse the resulting .htm files as reported on screen.


How do this thing work?
-----------------------

Well, the HS (HarbourScript) tecnology is based on the ASP
(Active Server Pages) concept and someway in new Oracle 8i's
too.

A .hs page is like any normal HTML page with Special Tags and
Embedded Code. Those tags are: <% (Start Scripting) and %>
(End Scripting). Once you run this script, the HS translator
translates the Embedded Code into true Harbour Code and executes
it. In other words, you write your PRGs INSIDE your web pages.
This concept is called active content.


Known bugs
----------

- Web Server hanging some times (see above);


Open questions
--------------

Things not working due to lack of knowledge (if you know how
to do any of this things, leave a message on Harbour List with
subject HS Open questions, thanks! ;) ):

- How to associate .hs with hscript.exe safely in PWS and IIS.
I associated it using the Registry Key HKEY_LOCAL_MACHINE\System\>
CurrentControlSet\Services\W3SVC\Parameters\Script Map but
whenever I call the script I get a Server Error 500 without any
further explanation.


Felipe G. Coury
fcoury@flexsys-ci.com