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
    Mar 2021
    Posts
    2
    Member #
    62560

    HTML appearing on web page

    I have an apache based website running on linux on the web and apache based running on windows for my development computer. I have multiple versions of my website setup with virtual hosts on my computer so I can trail stuff in one, develop in another and copy things over to a "current" and upload the current so I don't accidentally mess up my live one online by stuff I'm trying in the other local sites.

    Today I noticed html appearing in the local sites. I checked the others and they're all doing it too. I checked my live site and it is not. I downloaded the css and html files to my development and tried again but the same result. I'm really quite puzzled by what is happening. It's not happening on all pages but specific ones and they're identical to ones it is not happening on (except the content).

    I have SSI enabled and utilize three different includes on each page. I've checked for closing tags missing but can't find anything wrong. I mean it works on the live site but all of my development virtual sites are equally affected.

    I can't find anything in the apache logs indicating failures/errors (other than 304's which are expected). The weird thing is that it was working just fine until today. I've undone my changes and it still is happening.

    It's like the local apache server decided to quit processing and then starts again. Here is what the live site looks like followed by the same page in one of my local sites.

    Good-Articles.jpg
    Bad-Articles.jpg

    Any suggestions on how to debug this?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,865
    Member #
    5580
    Liked
    731 times
    Can you get it to happen on a site online that I can see? Post URL

  4. #3
    Junior Member
    Join Date
    Mar 2021
    Posts
    2
    Member #
    62560
    I started thinking that the local server couldn't handle the includes the way I'd set it up. I renamed the includes to .shtml and reconfigured the server. Now everything is correct again. Go figure...

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,865
    Member #
    5580
    Liked
    731 times
    You should really be using PHP.

    That way, you can utilize SQL (MySQL) as a database for content, etc.

    You should store photos (example as JPEG) in a directory or directories and store the photo filename and path in the SQL database for each entry (photographer, filename, catalog, caption, date, etc, etc).

    When galleries or pages are viewed, PHP dynamically displays gallery from the SQL database.

    Of course, modern HTML/HTML5 utilizes CSS to display layout properly on all screen sizes (devices).
    Last edited by mlseim; Mar 09th, 2021 at 07:23 PM.



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
  •  

Tags for this Thread

All times are GMT -6. The time now is 03:44 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com