I am getting file contents from the file_get_contents() function in php and I want to store that file in a particular folder. How would I do that?
file_get_contents()
If you're using php 5, you can use file_put_contents:
file_put_contents
file_put_contents('/path/to/file.dat', $data);