Click to See Complete Forum and Search --> : Question to SSI users


ptik
02-27-2003, 03:28 PM
I want to change value of "virtual" dinamic. For example, I want to
make virtual as variable:

<!--#set var="leftmenu" value="http://localhost/ssi/head.shtml" -->
<!--#include virtual="$leftmenu" -->

Yes, I know this sintax is wrong but I hope you can correct
it or consider another way.
Thank you.

Charles
02-27-2003, 04:37 PM
Actually, you syntax looks fine. It should work except that SSI cannot make an HTTP request. And since you are trying to load a file on the same server you need provide the local path and not a URL.

ptik
02-28-2003, 01:33 AM
Thank you, Charles! You protected my code :) and it began to work in this morning. May be I was mistaken yesterday when considered all syntax variants.
Unfortunately, I wanted to use http links so much!
Thank again!