PHP FTP Upload from Server to Server?

Hank B

New member
OK, I am trying to use PHP to upload a file from "public_html/gallerys/User_Gallerys/demo.php" (demo.php if Y! Answers cut it off) to "public_html/gallerys/User_Gallerys/" . $username . "/index.php"
(Don't worry, the variable $username is already set and the FTP connection is already made... earlyer in the script it made the directory "public_html/gallerys/User_Gallerys/" . $username . "/" and it worked fine)
The Directorys are all 755 (World can Read and Execute... NOT WRITE)
 
are you trying to "Copy" or "Move" the file?
to copy use
copy ( string $source , string $dest [, resource $context ] )

to move use
rename ( string $oldname , string $newname [, resource $context ] )
 
Back
Top