writing file question
Moderator: General Moderators
-
thegreatone2176
- Forum Contributor
- Posts: 102
- Joined: Sun Jul 11, 2004 1:27 pm
writing file question
well I am doing a project and the way it works is taht the client uploads a .txt with comma seperated values and i made a script to read from it using fgetcsv() and it creates the xml values i need. The problem is that i thought i just needed to output it but i need to write this variable to a .xml file. I tryed using fopen and w and w+ and got permission denied, so is there another function to create the file. I looked through all the functions on php.net under filesystem and did not seem to find what I needed. Also it does not matter if the function will error if the file exists becasue i can unlink the file first before writing if needed.