FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Copy file script





m-productions
Ok I got my create file and folder script working perfect, so when a user clicks "Create game account" the script then makes a folder for them, and there siteinfo.dat file for them, however, I would also like this script to then copy a file from its dir, to the new folder.. im not sure how to do this.

Heres some info that may be needed (also please note I dont want JUST the scirpt, I would also like an explanation or else I will never learn.)

I know it deals with this script
copy(file, newfile)
But im not good at php enough just yet, to be able to make a script myslef, i can edit them fine once made...

Script will be located at
http://beta.m-productions.us/scripts

File will be called
http://beta.m-productions.us/scripts/temp/index.swf
http://beta.m-productions.us/scripts/temp/index.html
http://beta.m-productions.us/scripts/temp/AC_RunActiveContent.js

Files will be moved to
http://beta.m-productions.us/scripts/$variable
(Note: by $variable I mean the last folder name will be set by a var)

(so there are 3 files that need to be copied to the new folder)
note,there are no files there right now. ill add them once i get a script and ill start testing it out.
Related topics
Windows Tips&tricks!
Search Engine Scrips
CGI-bin script help
Php - Basic Encryption site
Upload Script
Do you know any useful way ?
File upload problem :'(
Copy files between server.
Can you have upload scripts on frihost sites?
Server PHP file functions issues?
Running script under Linux
Disable Right click script in CSS ??????
Failed to copy file...
Directadmin folder/file creating permission for Joomla
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.