Re: [PHP] Writing files a problem

2002-03-17 Thread Jason Wong
On Monday 18 March 2002 00:46, Ben Waldher wrote: > When writing to a file several problems occur with this code: > > $stuff = include ("news.txt"); > $file = fopen ("news.txt", "w"); > $newnews = include ("template.txt") . $stuff; > fwrite ($file, $newnews); > ?> > > However, this code works: >

[PHP] Writing files a problem

2002-03-17 Thread Ben Waldher
When writing to a file several problems occur with this code: However, this code works: The problem with the first set of code is that it opens template.txt1, and some letters that were in template.txt become a 1. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h