Jump to content

Creating a new file on server?


LanceT

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.