nadeemshafi9 Posted January 3, 2008 Share Posted January 3, 2008 hello guys i need to move file whith php i cant use nove_upload_fille() i am in a httpsdocs directory i need to move it to httpdocs directory i have ftp open in php maybe i can use that im using php 4 thanks guys Quote Link to comment https://forums.phpfreaks.com/topic/84316-need-to-move-file-whith-php/ Share on other sites More sharing options...
trq Posted January 3, 2008 Share Posted January 3, 2008 rename(). Quote Link to comment https://forums.phpfreaks.com/topic/84316-need-to-move-file-whith-php/#findComment-429378 Share on other sites More sharing options...
nadeemshafi9 Posted January 3, 2008 Author Share Posted January 3, 2008 rename(). cant do it whith rename because it cant get out of the httpsdocs directory only ftp enters at / and allows u to access httpsdocs/ and httpdocs/ do u know any ftp_site() commands to do it ? Quote Link to comment https://forums.phpfreaks.com/topic/84316-need-to-move-file-whith-php/#findComment-429387 Share on other sites More sharing options...
trq Posted January 3, 2008 Share Posted January 3, 2008 can you explain your situation a little clearer? Quote Link to comment https://forums.phpfreaks.com/topic/84316-need-to-move-file-whith-php/#findComment-429389 Share on other sites More sharing options...
nadeemshafi9 Posted January 7, 2008 Author Share Posted January 7, 2008 i used ftp_rename like u said rename but using ftp_rename allowed me to start from the root Quote Link to comment https://forums.phpfreaks.com/topic/84316-need-to-move-file-whith-php/#findComment-432745 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.