Toon posts:

SSI virtual/file

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi. Wat is nu precies het verschil tussen "include virtual' en "include file"? Heb gelezen dat je met 'file' alleen files uit de huidige directory kan importeren en met 'virtual' zou je een pad vanaf de root moeten specificeren. Of is 'file' relatief aan de huidige map, maar kan je ook een pad buiten die map aangeven? There's too much confusion, i can't get no relief..... 8-)
Ik wil mijn site zo ontwerpen dat je hem in zijn geheel kan kopieëren zonder later SSI paden te hoeven aanpassen. Wat is het slimst?

Verwijderd

Zie http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html:
include
include will insert the text of a document into the parsed document. Any included file is subject to the usual access control. This command accepts two tags:

virtual gives a virtual path to a document on the server. You must access a normal file this way, you cannot access a CGI script in this fashion. You can, however, access another parsed document.

file gives a pathname relative to the current directory. ../ cannot be used in this pathname, nor can absolute paths be used. As above, you can send other parsed documents, but you cannot send CGI scripts.
Hieruit blijkt dat "file" waarschijnlijk het makkelijkst is, omdat het relatief is t.o.v. je huidige directory. Beperking is wel dat je alleen in de huidige directorie en subdirectories ervan kan kijken, en niet naar een parent directory kan stappen.

Enjoy :)

  • BOOTZ
  • Registratie: Maart 2001
  • Laatst online: 09:54
Op donderdag 27 december 2001 15:46 schreef MrX het volgende:
Zie http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html:
[..]

Hieruit blijkt dat "file" waarschijnlijk het makkelijkst is, omdat het relatief is t.o.v. je huidige directory. Beperking is wel dat je alleen in de huidige directorie en subdirectories ervan kan kijken, en niet naar een parent directory kan stappen.

Enjoy :)
ik gebruik voor cgi scripts altijd
<!--#include virtual="/cgi-bin/script.cgi?bla=bla"-->

Maak je eigen poll