Anyone have CGI experience willing to help me out?
Code:
#include <stdio.h>
int main(void)
{
int ch;
while ((ch = getchar()) != EOF)
putchar(ch);
putchar('\n');
return 0;
}
fails @ http://bit.ly/2jooFR
it also fails when running it via terminal.
I'm sure I'm doing something stupid. The reason I need this is we have several CGI scripts in C written and I need to call via my PHP scripts, but first I need to make sure I can even run CGI scripts in C on my server
CGI in Pearl works, http://www.attendview.com/phptest/hello.pl
Code:
#!/usr/local/bin/perl
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print "Hello, world!\n";