Results 1 to 4 of 4

Thread: How do I see SSI's on local machine?

  1. #1
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default How do I see SSI's on local machine?

    I am using SSI's for things like nav bar. When I preview a html file on my local machine for testing, it does not include the file to be included. This means I can't accurately test a page without uploading to the server. Is it possible to have these pages show the included file locally?
    Last edited by wkenny; 08-29-2011 at 06:30 AM. Reason: misleading phrase
    Cheers
    Billy

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    No. And yes, in a way.

    Server side languages, including SSI, PHP, CGI, and anything else that runs on the server can't just be previewed in a browser from an .html file.

    If you need a local preview without uploading to the internet, then you can install a webserver (hopefully with the same configuration as your final distribution location) and then preview it on this local server. This still won't display it just be opening the file in the browser, but by viewing it through the local server in your browser as if you're viewing on a remote page.

    Unfortunately due to the way that server side languages work, you need a server-- that's the point. I hope that helps.


    Personally I like to preview directly on the final server to be sure it's correct and because once it's working, it's working, and I don't need to change anything. Others prefer to create a local test server for this purpose. It's your choice.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    wkenny (08-29-2011)

  4. #3
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks, Daniel. I installed xampp and that does the trick.
    Cheers
    Billy

  5. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    local servers are definitely the way to go. with a little study, you can even set up your own domain names for your local sites (I use .dev instead of .com for my "working" sites).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •