Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
fopen()
$fp = fopen($file_path, "w");
'w' - Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
'w+' - Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
rewind()
rewind($fp);[/code}
[URL unfurl="true"]http://www.php.net/manual/en/function.rewind.php[/URL]
Enjoy! :-)
rewind()
rewind($fp);
$fp = fopen($file_path, "w");
rewind($fp);
$fp = fopen($file_path, "a");
rewind($fp);
$fp = fopen ("text.txt", "aw");
<?
$fp = fopen ("php.txt", "aw");
$fputs ("$name, $date, $title, $news);
fclose ($fp);
?>