Does anyone know a way to create a txt file using php?
I want my webpage in a specific function to create a txt file (which name will be taken from a variable, for example $name). Then i will open the file using fopen function, write to it using fwrite and close it using fclose, but i don't know how to create the file.
help with php!!!
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: help with php!!!
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.