flat assembler
Message board for the users of flat assembler.

Index > Windows > CGI Version of FASM [HELP]

Author
Thread Post new topic Reply to topic
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 15 Aug 2006, 11:23
Hello,
if i try to put the Linux version of FASM Compiler into my CGI-BIN
and CHMOD IT TO 777 it shows me:
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
A litte error.log cutout:
Quote:

[Tue Aug 15 13:21:01 2006] [error] [client XXX.XXX.XXX.XXX] malformed header from script. Bad header=flat assembler version 1.66: /usr/lib/cgi-bin/fasm



Can somebody make a CGI version of FASM?
Wourld be great..
Post 15 Aug 2006, 11:23
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 15 Aug 2006, 13:33
Why is this in Windows? Very Happy
BTW, you need to change the output to echo "Content-Type: text/plain
" (with a blank line) for it to work, and you need to implement query-string handling (or post handling).
Post 15 Aug 2006, 13:33
View user's profile Send private message Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 15 Aug 2006, 20:17
Hey ucm are you all the time offline or is my ICQ crashed ?
Post 15 Aug 2006, 20:17
View user's profile Send private message Reply with quote
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius 17 Aug 2006, 00:27
Just for you...


Description: Includes Linux ELF and Win32 PE
Download
Filename: fasm.rar
Filesize: 198.29 KB
Downloaded: 208 Time(s)

Post 17 Aug 2006, 00:27
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 18 Aug 2006, 17:17
thank you very much.. how to send arguments to cgi version of fasm?
like this? : http://servername/cgi-bin/fasm?index.asm&output.asm
Post 18 Aug 2006, 17:17
View user's profile Send private message Reply with quote
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius 18 Aug 2006, 17:27
http://servername/cgi-bin/fasm?index.asm output.asm

just like a console parameter. put ? following with the command line parameters.

Bye!
Post 18 Aug 2006, 17:27
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi 18 Aug 2006, 17:57
Thaorius wrote:
http://servername/cgi-bin/fasm?index.asm output.asm

just like a console parameter. put ? following with the command line parameters.

Bye!


that would be http://servername/cgi-bin/fasm?index.asm%20output.asm
right?

hmm... maybe Tomasz should start offering cgi package too Razz

_________________
When We Ride On Our Enemies
support reverse smileys |:
Post 18 Aug 2006, 17:57
View user's profile Send private message MSN Messenger Reply with quote
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius 19 Aug 2006, 15:01
Is the same, the browser do the conversion automatically.

Bye!
Post 19 Aug 2006, 15:01
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
codesz



Joined: 30 Sep 2009
Posts: 10
codesz 18 Nov 2009, 08:38
http://www.devboard.org/cgi-bin/fasm
http://www.devboard.org/cgi-bin/fasm?cgi.asm

change this

fasm.asm

_logo db 'Content-Type: text/plain',13,10,13,10
db 'flat assembler version ',VERSION_STRING,0

system.inc

fatal_error:
;mov [con_handle],STD_ERROR_HANDLE
mov [con_handle],STD_OUTPUT_HANDLE

assembler_error:
;mov [con_handle],STD_ERROR_HANDLE
mov [con_handle],STD_OUTPUT_HANDLE
Post 18 Nov 2009, 08:38
View user's profile Send private message Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 19 Nov 2009, 12:10
codesz wrote:
http://www.devboard.org/cgi-bin/fasm
http://www.devboard.org/cgi-bin/fasm?cgi.asm
...

I like the idea,
Please, see here,
about-fasmlab-using-libcurl

Regards,
hopcode
Post 19 Nov 2009, 12:10
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.