How can I write file into a folder?
Posted: Tue Jul 21, 2009 3:46 pm
Hi,
What I want is this. Read a word document and write the document as a new file into a folder.
$fp = fopen($filename, 'r');
$output = fread($fp, filesize($filename));
//and then write file into a folder as a new file
How can I do this??
Thanks a lot!
What I want is this. Read a word document and write the document as a new file into a folder.
$fp = fopen($filename, 'r');
$output = fread($fp, filesize($filename));
//and then write file into a folder as a new file
How can I do this??
Thanks a lot!