<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=543175413-26042007><FONT face=Arial
color=#0000ff size=2>Try using the full system path instead of just the
file name.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=543175413-26042007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=543175413-26042007><FONT size=2>Adam
Gaffin<BR>Executive Editor, NetworkWorld.com<BR>agaffin@nww.com / (508) 490-6433
/ <A href="http://www.networkworld.com/">http://www.networkworld.com</A><BR>"I
programmed my robotic dog to bite the guy who delivers the electronic mail." --
Kibo </FONT></DIV></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> support-bounces@drupal.org
[mailto:support-bounces@drupal.org] <B>On Behalf Of </B>Neil:
esl-lounge.com<BR><B>Sent:</B> Thursday, April 26, 2007 5:16 AM<BR><B>To:</B>
support@drupal.org<BR><B>Subject:</B> [support] Including text files in
nodes.<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>I am looking for a way to include a text file,
test.txt, into a node on creation.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried choosing Input Format as PHP and I
put:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><? include("test.txt"); ?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and got a large error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<LI>warning: Unknown(test.txt): failed to open stream: No such file or directory
in /home/ntc69/public_html/includes/common.inc(1342) : eval()'d code on line 1.
<LI>warning: Unknown(test.txt): failed to open stream: No such file or directory
in /home/ntc69/public_html/includes/common.inc(1342) : eval()'d code on line 1.
<LI>warning: Unknown(test.txt): failed to open stream: No such file or directory
in /home/ntc69/public_html/includes/common.inc(1342) : eval()'d code on line
1.</LI></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I also played around with virtual () with no luck.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How can I include another file in a node? Has
anyone had any luck doing this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Help appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Neil</FONT></DIV></BODY></HTML>