Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Member #
    17656
    Hi,

    Thanks for this forum first of all. Been a good source of information whenever I needed it. This week I activated the webspace associated with my ISP account & was able to upload & download with no problems at all trough ftp. However when I came to access it trough the http protocol it was blocking me out. When I checked with my ISP they instructed me that I needed to create an html index file. Iv'e been scouring the web all morning trying to find some information which could help me out but wasn't able to find what I need, ie. an index file that lists all the directories & files hosted on this webspace.

    I did manage to create one but only using an automated program & with files located on my HD. Don't know how to do it with files hosted on a remote server.

    Any tips or templates etc would be really appreciated.

    Best regards,
    Gian

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    It looks like you're sort of starting at the beginning.

    An HTML file is the "recipe", or instructions for your browser to display a web page.

    You can create one using a simple text editor (like notepad), or using a
    sophisticated software like Dreamweaver. In any case you need to create one
    and upload it to your website.

    If you give an HTML file the name "index.html", that becomes a default HTML file.
    The webhost server will give that one to the user if nothing else is defined.

    So, open up notepad and copy the code below,
    save it as "index.html", and then use your FTP to upload it.

    Code:
    <html>
    <head>
    <title>My First Web Page</title>
    </head>
    <body>
    <center>
    <br /><br /><br />
    Welcome to my site!
    </center>
    </body>
    </html>
    If you view that HTML file "offline", directly from your PC, it will open
    the .html extension file using IE (Internet Explorer). You can view the HTML
    code as well as any HTML code by clicking on "View", mouse down to "Source"
    and click. Example, on this website you're viewing now, go to the top of your
    browser and click "view,source".

    Go to Google and search for: HTML Tutorials


  4. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Member #
    17656
    Already got as far as you instructed mlseim although don't think I didn't appreciate your post. Tried looking up directories topics with regards to html but no go. Basically all I want is for the browser to display the files & directories I hosted through ftp. Basically the exact same thing that appears when I access it trough the ftp protocol!

    I know this is probably really simple to you guys but can't figure it out rudementary as it may be :/

    Thanks & hope youre a havin a gd weekend bdw

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    oh .... you can't do that with HTML, you'll need to use PHP scripting to
    display directory files. You'll copy some PHP scripting into notepad and then
    save as a PHP script (example: dir.php ). Upload using FTP and then go to
    the URL.

    Which PHP script to use depends on how elaborate the directory display should be.

    Since we don't know your level of PHP or HTML knowledge, you can go
    here and view several of the example scripts they have:
    http://us2.php.net/function.opendir



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:59 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com