elite_prodigy Posted April 5, 2008 Share Posted April 5, 2008 Well, you have all helped me to acertain that I can make a file with fopen(), but how do I write to said file? You guys have been so beneficial to my PHP learning experience! And thanks for everything as well. I can't wait to let you all have a crack my secret little project in the testing forum! Link to comment https://forums.phpfreaks.com/topic/99695-solved-writing-to-a-file/ Share on other sites More sharing options...
elite_prodigy Posted April 5, 2008 Author Share Posted April 5, 2008 Would this work: <?php $file = fopen($some_file, "W+"); $contents = "Some stuff to write to file"; fwrite($file, $contents); ?> Link to comment https://forums.phpfreaks.com/topic/99695-solved-writing-to-a-file/#findComment-510007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.