Page 2 of 2

Re: problems executing C code

PostPosted: 21. July 2009 17:03
by rohan
ie
the folder is
C:\xampp\cgi-bin\

and there is no 500 error

Re: problems executing C code

PostPosted: 21. July 2009 17:12
by Wiedmann
Hm, for me that's working. (sure you have changed nothing in the XAMPP configuration?)

BTW:
Following is the output i get after running in the shell

Code: Select all
Content-type: text/html

<html><body>hey</body></html>

The code above can't output this.

It outputs:
Code: Select all
Content-type: text/html

hey</html>

Re: problems executing C code

PostPosted: 21. July 2009 17:16
by rohan
ya i have changed the code to

#include<stdio.h>
main()
{
printf("Content-type: text/html\n\n");
printf("<html>");
printf("<body>");
printf("hey");
printf("</body>");

printf("</html>");
}


just to be sure.

I'm sure that i've not changed any of the configuration things!.. god knows!..
So, any suggestions from your side regarding what else could be done to solve this problem.