[vox-tech] reading files into a web page

nbs vox-tech@lists.lugod.org
Sat, 2 Feb 2002 12:19:17 -0800


On Sat, Feb 02, 2002 at 12:13:12PM -0800, Mark K. Kim wrote:
> On Sat, 2 Feb 2002, nbs wrote:
> 
> > Or simpler yet:
> >
> >   <?php include("file"); ?>
> 
> "include" does PHP translation, which Peter may not want.  It's especially
> fatal if you're including a user-posted data.  "fpassthru" is safer from
> security point of view.

Indeed.  I never have any user-posted data on sites where I've used
PHP, and I often _do_ want the contents PHP-parsed.  I'm guessing
fpassthru may be faster, though, so I should probably look into using
it in some places.  Thx :)

-bill!