MaB
12-01-2002, 11:42 PM
Hi,
Im a perl guru and ive recently jumped into graphical c++ for windows. Now im trying c++ for web output on linux. The program compiles ok, has its little content-type header and a line of text. when i run the compiled program from the command line ir returns the proper:
content-type:text/html
BOOOH
but when i run it from apache and the web it is garbled squares and other lines of code.
Also, i can run a perl script like url.com/path/to/script.pl/arg1/arg2 but if i try to run urlcom/path/to/cprogram/arg1/arg2 i get a 404 not found that it cant find /home/sites/...cprogram/arg1/arg2
Anyone got any ideas?
Thanks (PS No odd error_log or access_Log entries to help debug :()
Thanks
PPS the code is just:
int main (){
printf("content-type:text/html\n\n");
printf ("BOOOH");
return 1;
}
LAST Update
I tried to compile CGIWRAP and when running cgiwrap from the command line the output is ok but when cgiwrap is run via the browser it also gives the garbled output
REAL LAST UPDATE
This code is compiled seperately on another redhat 7.2 machine and gives the same garbled output.
Im a perl guru and ive recently jumped into graphical c++ for windows. Now im trying c++ for web output on linux. The program compiles ok, has its little content-type header and a line of text. when i run the compiled program from the command line ir returns the proper:
content-type:text/html
BOOOH
but when i run it from apache and the web it is garbled squares and other lines of code.
Also, i can run a perl script like url.com/path/to/script.pl/arg1/arg2 but if i try to run urlcom/path/to/cprogram/arg1/arg2 i get a 404 not found that it cant find /home/sites/...cprogram/arg1/arg2
Anyone got any ideas?
Thanks (PS No odd error_log or access_Log entries to help debug :()
Thanks
PPS the code is just:
int main (){
printf("content-type:text/html\n\n");
printf ("BOOOH");
return 1;
}
LAST Update
I tried to compile CGIWRAP and when running cgiwrap from the command line the output is ok but when cgiwrap is run via the browser it also gives the garbled output
REAL LAST UPDATE
This code is compiled seperately on another redhat 7.2 machine and gives the same garbled output.
