note 18772 added to function.fputs
| From: | flipside at planetmedalofhonor dot com | Date: | Tue, 05 Feb 2002 01:41:59 +0000 |
| Subject: | note 18772 added to function.fputs | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26252@lists.php.net to get a copy of this message | ||
Im a n00b to this stuff but have a little question. I have a template file that I would like to add
the content to no write over it. I want the string $content to be added to my template instead of
writing over it. Here is my current script
<pre>
$tutorial = "template.php";
$fp = fopen("$tutorial","w");
fputs($fp, $content, strlen($content));
<pre>
If you need any other info please just ask. And if you dont get my question aske again.
--
http://www.php.net/manual/en/function.fputs.php
http://master.php.net/manage/user-notes.php?action=edit+18772
http://master.php.net/manage/user-notes.php?action=delete+18772
http://master.php.net/manage/user-notes.php?action=reject+18772