copy file

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
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

copy file

Post by shiznatix »

i need to copy a file from one directory to another. how do i do this with safe_mode on?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hmmm.. ftp, I'd think.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

well i used copy then chmod while connected with ftp_ commands and all that worked BUT oddly when i try to access the file that i copyed via url it wont load? when i check on my ftp its all as it should be thou. why is this? is there somthing with the copy command that im not aware of? is there a better way to copy the file? its even chmod to 777 so its not that. why why why
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you got me there! :lol: sorry
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

lol damn iv been sittin here refreshing waiting for u to bail me out again :) i know this is really odd like it just wont load at all. why o why o why. if someone has the answer to this tell me pppplease
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post by Trenchant »

I'm not sure if this works or not in Safe Mode but you could try using http://ca.php.net/manual/en/function.copy.php[/url]
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

ya thats exactly what i am using. im looking for a alternative possibly?
Post Reply