fla5hba5h
08-02-2003, 10:46 PM
Has anyone ever used
<!-- #include file = "blah.inc" -->
?
Are there any compatibility issues? Does it load slow?
<!-- #include file = "blah.inc" -->
?
Are there any compatibility issues? Does it load slow?
|
Click to See Complete Forum and Search --> : #include fla5hba5h 08-02-2003, 10:46 PM Has anyone ever used <!-- #include file = "blah.inc" --> ? Are there any compatibility issues? Does it load slow? Compguy Pete 08-03-2003, 02:56 AM Are you asking if using SSI is slow? If you are... It's going to raise your server load... However it's not going to slow down your page load as all. the use of SSI is transparent to the user and they have no idea. fla5hba5h 08-03-2003, 05:19 PM Oh okay. But is there any way I can make SSI work on my computer? "my computer" meaning when I'm offline working on my site. Compguy Pete 08-03-2003, 08:42 PM Yes and no... Either setup Personal Web Server or Dreamweaver will show the SSI calls in the preview. However without some sort of webserver or program like dreamweaver there isn't much hope for viewing it offline. fla5hba5h 08-03-2003, 09:19 PM Okay, thanks Any idea why this (http://fla5hba5h.topcities.com/testingInclude.html) doesn't work? I have the .htaccess file, dunno what's wrong..:confused: Compguy Pete 08-03-2003, 09:43 PM Here do this... Rename the content.inc file to html or something else... the content setup is fine. I'm clueless on why you would use a .inc extention. Then use this coding... what you have on your page is incorrect. <!--#include file="content.html" --> THEN... Rename your page that is using the SSI call to .shtml .html files cannot parse the file naturally and you would have to modify your handlers to do so. Most vertual hosts will not allow you to make the modification thou. nkaisare 08-03-2003, 09:55 PM As Pete mentioned, there should be no space between <!-- and # Also, prefer the use of virtual instead of file: <!--#include virtual="filename.inc" --> file attribute is OK for this example, not OK if you need to specify path to the included file. Compguy Pete 08-03-2003, 10:06 PM Nkaisare is correct you could still use the .inc with the virtual attribute however learn to walk before you run :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |