Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Copy data between files
March 10, 2005, 8:24 am
rate this thread
How do I copy data from one file to another? from $_SESSION['fname'] to
I would like to automatically copy the data to
var fname = "fname";
var lname = "lname";
I am familiar with
$contents = file_get_contents($filename);
and I know how to copy files but not data inside of the file.
Thanks for the help.
Re: Copy data between files
You don't actually want to you copy that! fname and lname strike me like
lastname and firstname variables, so they are dependend on the user ->
data to dynmically set the values of [lf]name (don't forget to set hte
correct mimetype else strange things can happen).