dzhax Posted November 3, 2008 Share Posted November 3, 2008 I am experimenting with ftp on my website.I was wondering if there was a way with php to make a form to upload files to the ftp directory so when you access the ftp, you see the files that you uploaded and can download them?If I can not do this with php does anyone know what else I could use and maybe how?Thanks. Link to comment Share on other sites More sharing options...
Synook Posted November 3, 2008 Share Posted November 3, 2008 Why not?move_uploaded_file() to the directory in question. Link to comment Share on other sites More sharing options...
Jesdisciple Posted November 3, 2008 Share Posted November 3, 2008 And then redirect to the directory in question. (But you can't have the server deny access or default to index.php, index.html, etc.) Link to comment Share on other sites More sharing options...
dzhax Posted November 3, 2008 Author Share Posted November 3, 2008 how would it upload the file to move it? im new to php i know pretty much nothing about it. Link to comment Share on other sites More sharing options...
Jesdisciple Posted November 3, 2008 Share Posted November 3, 2008 When you see the name of any built-in PHP function, you can type/paste it in at php.net to get more information about it. For example: move_uploaded_file. See that page for an example and its "See also" section. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.