Hi,
Can anyone give me code to generate a text file using php
Thanks in advance,
madhu:)
How to generate a text file using php...?
Moderator: General Moderators
Re: How to generate a text file using php...?
The PHP manual gives details on using the filesystem Filesystem
In the fwrite there is this example of writing a text file
In the fwrite there is this example of writing a text file
Code: Select all
<?php
$fp = fopen('data.txt', 'w');
fwrite($fp, '1');
fwrite($fp, '23');
fclose($fp);
// the content of 'data.txt' is now 123 and not 23!
?>Re: How to generate a text file using php...?
it's working..Thank u so much..