davej Posted September 24, 2013 Share Posted September 24, 2013 So Php can upload a file to a directory? Read a directory listing? Create a new directory? Read a text file? Write to a text file? Delete a file? Rename a file? Delete a directory? How about move or copy a file? Thanks Link to comment Share on other sites More sharing options...
Don E Posted September 25, 2013 Share Posted September 25, 2013 (edited) Yes can copy, see: http://us2.php.net/manual/en/function.copy.php Can also move a file by using the rename() function, see: http://us2.php.net/manual/en/function.rename.php Edited September 25, 2013 by Don E Link to comment Share on other sites More sharing options...
thescientist Posted September 25, 2013 Share Posted September 25, 2013 (edited) yes to everything. Since PHP runs on the server, it has (with appropriate permissions) the ability to manipulate the filesystem. http://php.net/manual/en/book.filesystem.php Edited September 25, 2013 by thescientist Link to comment Share on other sites More sharing options...
davej Posted September 25, 2013 Author Share Posted September 25, 2013 Dang. Since I'm always on a shared host and have no command-line access I had not considered that I could do any automated file management. I'll have to get busy here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now