Page 1 of 1

output to text document

Posted: Thu Aug 07, 2003 11:34 am
by kage
i have been searching long and hard for how to do this .. but there are'nt very many good sites that can give you more thn jsut basic understnding of php

what im looking for is i would like my script to add certain information to a text document ..

to go more into depth i am running a site very much similar to this one ...and i attempting to make it add certain information to a text document evry time a user regesters ... the reason i would like to do this is that my ftp servers user information is saved as a text document .. so by doing this any new users will automaticly be regesterd with my ftp server ..

can anyone help me with how to make a php document save certain aspects of its information to a text document (or add it really)


thanks

Posted: Thu Aug 07, 2003 1:15 pm
by xisle
try the example here:
http://us2.php.net/manual/en/function.fwrite.php

use fopen() to create and or append the file
http://us2.php.net/manual/en/function.fopen.php

Posted: Fri Aug 08, 2003 6:59 am
by devork
file handling and all it's related functions are listed php manual
you better read it http://www.php.net/manual