________________________________________ From: Jay Blanchard [jblanchard@xxxxxxxxxx] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@xxxxxxxxxxxxx Subject: RE: Include Problem [snip] foreach ($lines2 as $line_num => $line2) { echo "<p>Line #<b>{$line_num}</b> : " . htmlspecialchars($line2) . "</p>"; } include ('http://www.mysite.com/calculate.php'); My problem is that when I use a blank file that only has <?php include 'http://www.mysite.com/calculate.php'; ?> The code works and displays what is meant to display. However, when I copy this snippet into the code even outside the foreach loop, it does not even read, or give me an error. Is there something I should not be doing here? [/snip] If you get no error the file is being included properly. What is the goal here? Is it to have calculate.php perform actions on the returned data from lung.txt? The goal is to do a word count of what was in lung.txt, since I don't want the users to interact directly with this file. However, this is not showing up at all. Any ideas? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php