[HELP] with code for button
Moderator: General Moderators
-
jamietrent
- Forum Newbie
- Posts: 2
- Joined: Sat Jan 23, 2010 10:33 am
[HELP] with code for button
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........
- SimpleManWeb
- Forum Commoner
- Posts: 57
- Joined: Wed Dec 30, 2009 4:15 pm
- Location: New Hampshire, USA
Re: [HELP] with code for button
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.