problems executing C code

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Re: problems executing C code

Postby rohan » 21. July 2009 17:03

ie
the folder is
C:\xampp\cgi-bin\

and there is no 500 error
rohan
 
Posts: 10
Joined: 21. July 2009 11:12

Re: problems executing C code

Postby Wiedmann » 21. July 2009 17:12

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>
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: problems executing C code

Postby rohan » 21. July 2009 17:16

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.
rohan
 
Posts: 10
Joined: 21. July 2009 11:12

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests