Ill try the code when i get up in the morning thanks salem
i am on ubuntu and it had worked in the past on another program
and yea maybe it does fail before i guess salem's code will sort that out...
Type: Posts; User: aadil7
Ill try the code when i get up in the morning thanks salem
i am on ubuntu and it had worked in the past on another program
and yea maybe it does fail before i guess salem's code will sort that out...
so why did it not appear on the web browser... this is why im getting confused
sorry but errors has been #defined as a directory leading to the 404.html file e.g.
#define errors "/home/.../errors/"
when i printed the file path it was correct but i just dont know why it...
any help or am i helpless?
i know the coding is right but i am just baffled thats all
if i cant get help ill just have to start from ground 0
hello everyone
i am having an issue with opening a file. it is meant to open the file in a web browser...
detailed
i am writing a webserver everything works apart from when i try to open a...
thanks for the help ill try this out in the morning and report back here
regards
webserver: rwx r-x r-x me me
index.html: rw- rw- rw- me me
index2.html: rw- rw- rw- root root
403.html: rw- r-- r-- me me
before webserver has been compiled it is rwx r-- r-- but thats before...
hmm well would you like to know rwx-rwx-rwx of each of the files in question?
well for the webserver its is me me
and for index.html its me me
and for index2.html i changed it to root root
for the 403.html error file its ...
this is the problem ive tested it without the file_permission function and it still displays the page!
i have emailed you with regards to this
my application is a webserver and it is meant to retrieve files from a directory defined in the program
it is meant to retrieve the webpage and display it and if there is an error it is meant to...
it is a webserver and i dont really understand why it works with the send_new statements and not the open()
well it did not display on the web browser
hi all
i have been trying to work at this all day but no cigar
the file does not seem to open
i have used the following function so if the file has root privileges it will open up another file
...
issue is sorted thanks
i see where your coming from ive done a little bit more reading
but im failing to find a good example of the use of stat()
i would preferably like to see the uid_t example
hi all
i am trying to find out how to find out how to check if a file has root user privileges, if it does then the user should receive an error.
i have so far found the stat() function where it...
im just really confused on my way out of this mud im stuck in
if (heading[j+1] = 'R')
{
strncpy (buffera, heading, 5);
nwrite = open(buffera, O_CREAT, S_IRUSR|S_IWUSR);
}
while (heading[j] != '\0')
j++;
if (heading[j+1] = 'Q')
{
ow no sorry but that was just a code problem when i pasted it on here
i have actually closed the brackets before the next while
and im not actually sure what part of the code you are pointing to...
yep ive been through that and i have problems with ascii at home but i will change that
hi all
i am trying to extract contents from a file, the content is the make up for other files e.g. the file would contain something like:
file1Rfile contents\n
Qfile2Rhello world\n
Q
now...
strcpy (bufferb, &heading[pos2a]);
bufferb[pos2a]='\0';
printf("bufferb is %s\n", bufferb);
THIS IS WHAT I HAVE COME UP WITH BUT MY ONLY ISSUE IS THAT I GET A SEGMENTATION FAULT...
ok well ive tried this now and i still cannot get anywhere because i cant seem to be able to take the text away from the start
char *pos = strchr(heading, 'R');
char *pos2 = strchr(heading,...