Where is a text file i created kept?
If you don't specify anything then it should be in the same directory as you are running PHP from.
Remember if you are running the script on a web server and want to save in a particular directory, then usually you will need to set the full path to the file.
ASK A QUESTION
More files PHP QuestionsWhat does file_get_contents do?
How do i keep my site menu in one file?
How can i upload large files like mp3 songs using php?
How can i print a file without opening it ?
Would like to create a web page by using the contents of file#1 as input, writing contents of a variable as content, and ending with contents of file#2. Would you please help me learn how to do this? Here is my attempt: $in1 = 'input1.html'; $in2 =