开发者

Is a cgi different from a console application?

开发者_如何转开发I am having some problems in running cgi on my Apache (Windows, XAMPP), but the exe runs smoothly on the command prompt.

Reading the logs on Apache folder it gives no information about the error. Any ideas about this?


You are a little light on the detail, so I'll just hazzard a guess.

chmod +x app_executable

Also make sure you are outputting the Content-Type: text/html (or whatever you are returning) followed by two newlines.


Is the file in the proper directory? Does Apache have the desired file/directory access rights to that directory? Can you run other CGI scripts from the same directory?


Weird.

I found the problem, it was in a sprintf("%f", f); where f wasn't initiated. This is weird, because it ran normal on my cmd but not on apache

any clues?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜