help with php!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lvasilis222
Forum Newbie
Posts: 1
Joined: Sun Mar 09, 2008 6:54 pm

help with php!!!

Post by lvasilis222 »

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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: help with php!!!

Post by Christopher »

(#10850)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: help with php!!!

Post by pickle »

[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.
Post Reply