Results 1 to 2 of 2

Thread: GSP - a server-side scripting language

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    GSP - a server-side scripting language

    Hello,

    I have started working on a server-side scripting language. You can download it and test it and pleaaaaase give some comments.

    You will need to configure your server ro run .gsp files by an interperter i included in the package

    sample script and it is included in the package ( its working!

    to test it pass a query string parametres of a and cccc
    it will say what is bigger: a or cccc and write some environment variables.

    Code:
    <$ WriteData ("Content-type: text/html\n"); $>
    <html>
    <body>
    		
    <$
    
    				$strfunc >> VALUE$ *a >> a
    				$strfunc >> VALUE$ *cccc >> cccc
    $>
    <font color=blue>a & cccc tests: &nbsp;
    <$
    				if (a = cccc){
    					WriteData ("a and cccc are same!");
    				}
    
    				if (a > cccc){
    					WriteData ("a is bigger than cccc");
    				}
    				
    				if (a < cccc){
    					WriteData ("cccc is bigger than a");
    				}
    
    $>
    </font>
    <p></p>
    <table border=1>
    <tr>
    <td>User-Agent: </td>
    <td>
    <$
    $strfunc >> ENV$ *HTTP_USER_AGENT >> Enviro_Agent
    $writehash ("Enviro_Agent");
    $>
    </td>
    </tr>
    <tr>
    <td>User-IP:</td>
    <td>
    <$
    $strfunc >> ENV$ *REMOTE_ADDR >> Enviro_IP
    $writehash ("Enviro_IP");
    $>
    </td>
    </tr>
    <tr>
    <td>User-IP:</td>
    <td>
    <$
    $strfunc >> ENV$ *SERVER_SOFTWARE >> Enviro_ServerSoftware
    $writehash ("Enviro_ServerSoftware");
    $>
    </td>
    </tr>
    </table>
    
    </body>
    </html>
    Thanks you,
    made_of_asp
    VS.NET 2003

    Need to email me?

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i'll have a look at it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width