0

I have file 123.php which produces dynamic information upon excecution and need 123.php to copy it's output to file "abc.txt" How would I go about this in a unix environment?

Thanks in Advance!

Edited by lonestar23: Better Title

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by lonestar23
0

fopen, fwrite, fclose or even simpler, file_put_contents.

Ditto:

looks at this - amazing!

0

Below is what ended up working for me on my BSD box!

<?php
$fileHandle = fopen('/usr/local/myface/youtweet.txt', 'w+')
 OR die ("Can't open file\n");

$faceit = "got to love myfaceyoutweet.com";

fwrite ($fileHandle, $faceit);

fclose ($fileHandle);//CLOSE FOPEN 
?>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.