I am writing this paragraph of text to the newly created file createdfile.txt.
-----------------------------This is text in a file I created before php-file-manipulation.php was written.
This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.This is the 1st line of new data I'm writing to the existing file existingfile.txt.
This is the 2nd line of new data I'm writing to the existing file existingfile.txt.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP File Manipulation</title>
</head>
<body>
<?php
//create the file createdfile.txt
$my_file = 'includes/createdfile.txt';
$handle = fopen($my_file, 'w') or die('Cannot open file');
//open a file
$my_file = 'includes/createdfile.txt';
$handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file);
//write to a file
$my_file = 'includes/createdfile.txt';
$handle = fopen($my_file,'w') or die('Cannot open file: '.$my_file);
$data = '<p>I am writing this paragraph of text to the newly created file createdfile.txt.</p>';
fwrite($handle, $data);
//read a file
$my_file = 'includes/createdfile.txt';
$handle = fopen($my_file, 'r');
$data = fread($handle, filesize($my_file));
//append to a file
$my_file = 'includes/existingfile.txt';
$handle = fopen($my_file, 'a') or die('Cannot open file: '.$my_file);
$data = '<p>This is the 1st line of new data I\'m writing to the existing file existingfile.txt.</p>';
fwrite($handle, $data);
$new_data = "\n".'This is the 2nd line of new data I\'m writing to the existing file existingfile.txt.</p><p><hr /></p>';
fwrite($handle, $new_data);
//close a file
fclose($handle);
include ("includes/createdfile.txt");
echo ("-----------------------------");
include ("includes/existingfile.txt");
//delete a file
//$my_file = 'includes/createdfile.txt';
//unlink($my_file);
show_source ("php-file-manipulation.php");
?>
</body>
</html>