1

Yup, so that’s my question.

I am really new to html/php/web programming in general.

I am uploading my files on cyberduck - when I upload the html files, they get converted from code to actual text and images which are not even displayed properly. I think I’ve chmod’ed all my images, yet rather than images that show up, I get clickable text.

I am massively sorry if these sound like silly questions, but i would be really appreciative of any help!

  • 3
    do you have an index file? – Kristian Dec 17 '12 at 16:58
  • Sounds like you're either uploading as a non `.php` or a non `.html` file, or your server is serving the files as eg. `Content-type: text/plain`. Could you check the response HTTP header with a tool like Fiddler2 (for windows), so you can see what `content-type` your server tells you that the document is in? – h2ooooooo Dec 17 '12 at 16:59
  • They don't sound like silly questions, but they're not actually questions. ("I get a directory of my own folders" is a statement, not a question, whether you put a question mark after it or not.) Aside from that, could you provide a link to one of these HTML files you've uploaded? – Paul D. Waite Dec 17 '12 at 16:59
  • Thanks for the replies! I do have an index file, but I realize (sheepishly) now that it was in the wrong folder - so my site link now actually goes to the site. – user1849037 Dec 17 '12 at 17:22
  • All my files are indeed just .php and .html, but I will check the HTTP response now. – user1849037 Dec 17 '12 at 17:23

1 Answers1

1
  1. Make sure you've got a file called index with an extension of .html .htm or .php

  2. You shouldn't allow directory listing (unless you really want to), to remove this option you should add the line Options -Indexes to your .htaccess file. If you don't have such a file you can easily create one and upload it.

Matzo
  • 94
  • 4