It´s possible upload a file in PHP via FTP??
It´s possible upload a file in PHP via FTP??
If you mean is it possible to upload a file with a .php extension then yes it is
I'm sorry I don´t mean that!!
But upload a file with .pdf or .jpg extension for a DB when you have a field with the type file
You wish to use PHP to upload a file to a server via FTP?
You can do this. Have a look at http://www.php.net/ftp
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
oops....must have miss interpreted your question paramoxo![]()
wow thanks for the link, i've been looking for the same thing a whileOriginally Posted by Twey
Note that there are easier ways to do this if its the same server the php is running from. You can open/modify/save files from the local server.
FTP is only needed if you're working with more than one.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Isn't more safe to do a upload via ftp that via http? Give me some advantages and disadvantages by uploading a file with this form to decide better...
One more question. Can I do an update query for change a file?
There are neither equivalent advantages nor disadvantages to the two methods. FTP is easier to use for a remote server, is all, because HTTP requires you to construct the request by hand in PHP. If you're looking for security, PHP (with appropriate modules and compilation options) can upload a file via SSH, which is encrypted and therefore considerably more secure.Isn't more safe to do a upload via ftp that via http? Give me some advantages and disadvantages by uploading a file with this form to decide better...No, you must download it, edit it, delete the original, then upload your copy in its place.One more question. Can I do an update query for change a file?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Not neccessarily... you can modify files that are on the server through php, but it is hard to do so, depending on complexity. You'd never want to do more than a text file like that.
Now... it wouldn't be updating... it would be creating a new one and replacing, but all in PHP.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks