RE: [PHP] Include Problem
| From: | Jay Blanchard | Date: | Tue, 24 Jun 2008 17:10:34 +0000 |
| Subject: | RE: [PHP] Include Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275891@lists.php.net to get a copy of this message | ||
[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?