[HELP] with code for button

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
jamietrent
Forum Newbie
Posts: 2
Joined: Sat Jan 23, 2010 10:33 am

[HELP] with code for button

Post by jamietrent »

well im making an upload cms and well im doing pretty good so far all i need is a code for when you type in a textbox and press a button it creates a directory. i have done that so far but i need it for when you press the button it creates the directory but it puts a few .php files in there auto maticaly.... please help mw with puting the .php files in there auto maticaly........
User avatar
SimpleManWeb
Forum Commoner
Posts: 57
Joined: Wed Dec 30, 2009 4:15 pm
Location: New Hampshire, USA

Re: [HELP] with code for button

Post by SimpleManWeb »

Do the files that you want to put into your new directory already exist somewhere else on the server? If so, you could use copy(). If they do not, you will need to use mkdir() to create the file and then use fwrite() to write each individual line into that file.
Post Reply