cia a tutti
innanzitutto chiedo scusa se ho sbagliato sezione, ma ero indeciso se postare qui o in programmazione
allora...
ho un semplicissimo file c++
l'ho compilato (windows) e copiato nella cartella cgi-bin di apache (2.0.53)...codice:#include<iostream> using namespace std; int main() { cout << "Content-Type: text/plain"; cout << "prova"; }
ho provato a fare http://localhost/cgi-bin/prova.exe,ma il risultato nn è incoraggiante...
dal file error log di apache leggocodice:Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, hfish@ibero.it and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.53 (Win32) PHP/4.3.10 Server at localhost Port 80
è sbagliato il codice del file prova.exe o devo fare qualche settaggio particolare nel file din configurazione di apache??codice:[Thu Apr 07 17:48:36 2005] [error] [client 127.0.0.1] Premature end of script headers: prova.exe
grazie
ciao