apache - Saving file with CGI C program to www directory -
i have save file in server cgi c programme , access client. if save file in cgi-bin directory, works cannot access client because directory protected. if seek save file in directory, fopen function can't create file.
file *fh = fopen (filename, "wb");
working file not accessible.
file *fh = fopen (//var//www//filename, "wb");
not working. directory writeable, works if run statement on local c program.
so, how can give permissions cgi programs write in www directory?
i'm using ubuntu , apache.
thank you
the permissions ok. problem in c code. solved using
snprintf(pathfile,120,"//var//www//files//%s",filename); file *fh = fopen (pathfile, "wb");
c apache cgi fopen
No comments:
Post a Comment