SSI spew

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

SSI spew

Post by sourceuno »

I'm trying to use spew to display the contents of a static html page but it returns nothing. Here's my syntax:

<spew "/inc/myinc.htm">

Why isn't it reading the file?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

SSI spew

Post by Kai »

<spew> returns 1 on success, 0 on error; but it *prints* the contents of the file. If you want the contents of the file in a variable for further processing first, use <read>. See the Vortex manual.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

SSI spew

Post by mark »

Also note that the filename must be absolute, not relative to DOCUMENT_ROOT.
Post Reply