One additional thought
| From: | Ron Piggott | Date: | Sun, 11 Sep 2005 17:07:48 +0000 |
| Subject: | One additional thought | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-40251@lists.php.net to get a copy of this message | ||
I have this PHP code below that loads a web page into the "$message"
variable
$lineArray = file($web_page);
// make an empty variable first
$message = "";
// concat all array element
foreach($lineArray as $eachLine) {
$message .= $eachLine;
}
$additional_text = "blah blah blah";
$message = $additional_text . $message;
and then write that to a file. I do not know the command to write it to a
file. And I need to make this edit to each and every HTML file within my
site === I am not sure how to tell the computer to open up each file within
each directory.
Ron