output to text document

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kage
Forum Newbie
Posts: 10
Joined: Thu Aug 07, 2003 11:34 am

output to text document

Post 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
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post 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
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

file handling and all it's related functions are listed php manual
you better read it http://www.php.net/manual
Post Reply