Re: PHP
| From: | Jesse Cablek | Date: | Fri, 13 Sep 2002 03:24:46 +0000 |
| Subject: | Re: PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116230@lists.php.net to get a copy of this message | ||
llclmc writes:
I am trying to copy *.log files to a file called dir.data. Does anyone have a suggestion on the php code to use? I am using Redhat 7.0. Using "ls *.log > dir.data doesn't work.Try: "cat *.log > dir.data" ls will just give filenames, cat will do the inside of the files.
Also does anyone know how to insert a text on about the 4 or 5 line of a file using php? I can add text to the end of a file and to the beginning, but I'm not sure how to do it for specific lines.Sorry.. -jesse