LanceT Posted March 4, 2007 Share Posted March 4, 2007 So I have some data in a mySQL database and I want to create a new file (let's say a text file, but it should be able to be any type, such as HTML, php, etc) with this data. I searched but didn't find anything that was suitable to my case. How do I create a new file and then insert the data into it? Also how do I overwrite an existing file with this data? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/41067-creating-a-new-file-on-server/ Share on other sites More sharing options...
fert Posted March 4, 2007 Share Posted March 4, 2007 http://us2.php.net/manual/en/function.fopen.php http://us2.php.net/manual/en/function.fwrite.php Link to comment https://forums.phpfreaks.com/topic/41067-creating-a-new-file-on-server/#findComment-198890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.