ohdang888 Posted June 20, 2008 Share Posted June 20, 2008 how do i rename a file that is already on the server... i know the name, for example --- test.swf and i want to rename it -- 1.swf how can i do that???? Thanks! Link to comment https://forums.phpfreaks.com/topic/111133-solved-rename-old-file/ Share on other sites More sharing options...
widox Posted June 20, 2008 Share Posted June 20, 2008 Try rename() http://us2.php.net/manual/en/function.rename.php. You'll have to be certain that you have permissions to do that too. Check out the Filesystem Functions for some ideas. http://us2.php.net/manual/en/ref.filesystem.php HTH Link to comment https://forums.phpfreaks.com/topic/111133-solved-rename-old-file/#findComment-570350 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.