Xu Wei Jie Posted March 18, 2009 Share Posted March 18, 2009 Currently, I am doing this to my file $output="test.txt"; system("php x.php > $output",$retval); This will overwrite it simply every time. How do I make it append using system()? TIA Link to comment https://forums.phpfreaks.com/topic/150040-solved-appending-to-file-using-system/ Share on other sites More sharing options...
samshel Posted March 18, 2009 Share Posted March 18, 2009 try system("php x.php >> $output",$retval); Link to comment https://forums.phpfreaks.com/topic/150040-solved-appending-to-file-using-system/#findComment-787995 Share on other sites More sharing options...
Xu Wei Jie Posted March 18, 2009 Author Share Posted March 18, 2009 It works. Thanks Link to comment https://forums.phpfreaks.com/topic/150040-solved-appending-to-file-using-system/#findComment-788019 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.