flat assembler
Message board for the users of flat assembler.
Index
> Linux > Flatassembler as CGI [HOW TO - NEED HELP] |
Author |
|
lsa 17 Aug 2006, 16:37
First of all you probably want to compile your program and then put the executable in the cgi directory.
The problem is probably that your "script" doens`t start with the header: db "Content.-type: text/html",10,10 This needs to be send as the _first_ thing. Ofcourse this could be text/plain or any other format you want to send. This header needs to be send to STDOUT(fd 1), without the db and " ofcourse.. You may need/want to read the HTTP 1/0 and 1/1 to learn about all the headers which can be send. CGI script only needs execute permissions in normal cases, but you probably know this. If this didn`t solve your problem - post your code or some of it (the importent part). |
|||
17 Aug 2006, 16:37 |
|
codesz 18 Nov 2009, 08:33
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 assembler_error: mov [con_handle],1 ;2 call display_user_messages fatal_error: mov [con_handle],1 ;2 |
|||
18 Nov 2009, 08:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.