![]() |
|
|
+ Search |
![]()
|
Mar 23rd, 2001 13:18
Ben Udall, mike gifford, http://www.php.net/manual/en/function.fopen.php
$filename = 'newfile.inc';
$contents = "<? echo 'This is a new file.'; ?>";
if ($fp = fopen($filename, 'w'))
{
fwrite($fp, $contents);
fclose($fp);
}