Hey everyone,
I'm having a slight problem with a CGI C++ script.
I'm trying to get the time/date, and I have a C++ program that will do this, namely:
time_t *test;
tm *ftest;
time(test); ftest = localtime(test);
cout << ftest->tm_hour << ":" << ftest->tm_min << " "
<< ftest->tm_mon+1 << "-" << ftest->tm_mday << "-" << ftest->tm_year+1900;
but now I include this in a CGI script, and I get a 500 error. I put in only up to time(test) and that's not even working. Help!