Search:

Type: Posts; User: aadil7

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,636

    Ill try the code when i get up in the morning...

    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...
  2. Replies
    10
    Views
    1,636

    so why did it not appear on the web browser......

    so why did it not appear on the web browser... this is why im getting confused
  3. Replies
    10
    Views
    1,636

    sorry but errors has been #defined as a directory...

    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...
  4. Replies
    10
    Views
    1,636

    any help or am i helpless? i know the coding is...

    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
  5. Replies
    10
    Views
    1,636

    cannot open file

    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...
  6. Replies
    18
    Views
    2,249

    thanks for the help ill try this out in the...

    thanks for the help ill try this out in the morning and report back here
    regards
  7. Replies
    18
    Views
    2,249

    webserver: rwx r-x r-x me me index.html: rw- rw-...

    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...
  8. Replies
    18
    Views
    2,249

    hmm well would you like to know rwx-rwx-rwx of...

    hmm well would you like to know rwx-rwx-rwx of each of the files in question?
  9. Replies
    18
    Views
    2,249

    well for the webserver its is me ...

    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 ...
  10. Replies
    18
    Views
    2,249

    this is the problem ive tested it without the...

    this is the problem ive tested it without the file_permission function and it still displays the page!
  11. Replies
    18
    Views
    2,249

    i have emailed you with regards to this

    i have emailed you with regards to this
  12. Replies
    18
    Views
    2,249

    my application is a webserver and it is meant to...

    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...
  13. Replies
    18
    Views
    2,249

    it is a webserver and i dont really understand...

    it is a webserver and i dont really understand why it works with the send_new statements and not the open()
  14. Replies
    18
    Views
    2,249

    well it did not display on the web browser

    well it did not display on the web browser
  15. Replies
    18
    Views
    2,249

    file does not open!

    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

    ...
  16. Replies
    3
    Views
    1,369

    issue is sorted thanks

    issue is sorted thanks
  17. Replies
    3
    Views
    1,369

    i see where your coming from ive done a little...

    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
  18. Replies
    3
    Views
    1,369

    finding user permissions

    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...
  19. Thread: looping issue

    by aadil7
    Replies
    9
    Views
    2,006

    im just really confused on my way out of this mud...

    im just really confused on my way out of this mud im stuck in
  20. Thread: looping issue

    by aadil7
    Replies
    9
    Views
    2,006

    if (heading[j+1] = 'R') { strncpy (buffera,...

    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')
    {
  21. Thread: looping issue

    by aadil7
    Replies
    9
    Views
    2,006

    ow no sorry but that was just a code problem when...

    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...
  22. Thread: looping issue

    by aadil7
    Replies
    9
    Views
    2,006

    yep ive been through that and i have problems...

    yep ive been through that and i have problems with ascii at home but i will change that
  23. Thread: looping issue

    by aadil7
    Replies
    9
    Views
    2,006

    looping issue

    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...
  24. strcpy (bufferb, &heading[pos2a]); ...

    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...
  25. ok well ive tried this now and i still cannot get...

    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,...
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4