Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

<!-- #include file="filename.inc" --> not working in html file

  • 02-02-2005 03:21PM
    #1
    Closed Accounts Posts: 402 ✭✭


    Hi all,

    Maybe you can help me out on this one.. i have created an application mapping for the .inc extension on IIS and restarted the web services..
    what am i doing wrong.. ?

    Note: works if the file using the SSI is .asp opposed to .html


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    AlisonB wrote:
    Hi all,

    Maybe you can help me out on this one.. i have created an application mapping for the .inc extension on IIS and restarted the web services..
    what am i doing wrong.. ?

    Note: works if the file using the SSI is .asp opposed to .html
    So use the asp extension then? Is there a reason you can't?


  • Closed Accounts Posts: 402 ✭✭AlisonB


    tried it with asp on staging server .. which his internal .. .net framework is not installed on webserver that is outside the DMZ (which is the server i need it working on)


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Well if you're using ASP.NET, you'll need the framework installed on any server its going to be run off.


  • Registered Users, Registered Users 2 Posts: 1,080 ✭✭✭Crumbs


    Try .shtml


  • Closed Accounts Posts: 402 ✭✭AlisonB


    Well if you're using ASP.NET, you'll need the framework installed on any server its going to be run off.
    I'm not using ASP. it's a standard html file. converting the html file to .asp was a simple a test on the staging server to see would it work.. will try shtml crumbs thx.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,890 ✭✭✭cgarvey


    AlisonB wrote:
    Maybe you can help me out on this one.. i have created an application mapping for the .inc extension on IIS and restarted the web services..

    It won't include?
    Probably because .html isn't parsed, so you need to rename test.html to test.shtml .. or you could try and copy the .shtml mapping to .html

    OR
    It will include but just displays your ASP code, you want the output of that ASP, not the code?
    You probably need to use #execute rather than #include .. and #excute test.inc assumes you have the propper app mapping set up for .inc

    .cg


  • Registered Users, Registered Users 2 Posts: 1,452 ✭✭✭tomED


    AlisonB wrote:
    I'm not using ASP. it's a standard html file. converting the html file to .asp was a simple a test on the staging server to see would it work.. will try shtml crumbs thx.

    Standard HTML files don't include files. Includes only work with server parsed files such as cgi, shtml, php, asp files etc.


Advertisement