Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including a file
Message
 
À
27/07/2001 15:40:56
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00532053
Message ID:
00536682
Vues:
8
Are you talking about ServerSide includes? In templates or scripts?

You can use:
<= FileToStr( "d:\somepath\somefile.txt") %>
to include a file in a script page. There really is no need for Server Side includes for include files in that scenario.

+++ Rick ---

>>>Is there a way in a template to include a file. I have this header that I would like several templates to use. For now, I have to paste it in every file. As this is a template, the ASP include command doesn't work. Is there a way to do that?
>>
>>Michel --
>>
>>A long answer would be to create your own preprocessor in VFP. Wouldn't be too hard.
>>
>>FOR X = 1 TO list of files to open.
>> FileToStr()
>> Search for Include directive.
>> IF Include directive found
>> FileToStr()
>> Insert string in place of directive.
>> ENDIF
>>ENDFOR
>
>This is what I am already doing. I was wondering if there would be a syntax in WWC which would have supported that at the template level.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform