Forum Moderators: coopster

Message Too Old, No Replies

Problem Copying File to Directory Location

         

BOXiD

12:22 am on Jul 24, 2005 (gmt 0)

10+ Year Member



Hi. im building a script for my members to join my site, when they join a folder is created automatically, thats done, what i cant do is copy a file from c:\Server\new\index.php to c:\Server\www\$user\index.php

the $user bit is stopping me, can anyone help, ive tried for the past 2 hours and got nowhere with that, thanks.

grandpa

1:11 am on Jul 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi BOXiD, Welcome to WebmasterWorld.

Are you getting an error? Does the variable $user contain the value that you want?

BOXiD

9:10 am on Jul 24, 2005 (gmt 0)

10+ Year Member



hi i dont get an error, it creates the account in the database it just doesnt copy the file.

BOXiD

9:21 am on Jul 24, 2005 (gmt 0)

10+ Year Member



thanks for the welcome, would it work if i done it lilke this, copy the folder's contents from c:/Server/new to c:/Server/www/$user
is it the same way to copy a folder or not?

weip

4:36 pm on Jul 24, 2005 (gmt 0)

10+ Year Member



Hi, Could you tell us what scripts you are using to copy the file?