Jump to content

including files in html


Recommended Posts

edit x2: ok so the original post went something like this...

 

i couldnt get file includes working in a strictly html site i tryed a bunch of different

things to get it to work, including:

 

<!--#include file="sidebar.html"-->
<!--#include virtual="sidebar.html"-->
<!--#include file="sidebar.shtml"-->
<!--#include virtual="sidebar.shtml"-->
<?php include("sidebar.php"); ?>
<?php readfile("sidebar.php"); ?>
<? include("sidebar.php"); ?>
<? readfile("sidebar.php"); ?>

 

solution: (kinda but not really)

i was trying to do everything just straight up html/css, but i got fed up and switched

the project to asp.net, which fixed the problem.

Link to comment
Share on other sites

edit: never mind i switched my project from straight html to an asp.net project and fixed the problem

 

is there a way for me to delete this post?

Would've been nifty if you had the original post and the solution to your problem detailed so that another member does not ask the same question.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...