The ftp script itself is no problem, but i have never dealed with the upload a file form itself... i am looking for some guidance... A from in itself would be nice and perhaps an explanation to where can i get the file's directory on the client's machine so that i can set the ftp variables right.
Thanks
Ftp form...
Moderator: General Moderators
Just while i was waiting i thought i mite test out my ftp function itself... i found that i cannot upload the file... i get Warning: ftp_put(): error opening
what could it be..spaces?
Also on the topic another curiosity... i would like to show a bar that tells the user how much of it has been uploaded...
Thanks...
what could it be..spaces?
Also on the topic another curiosity... i would like to show a bar that tells the user how much of it has been uploaded...
Thanks...
Well no it's not possible, what field $client_path?mikusan wrote:Then how is that...how do i make that form...
I thought FTP was a way for a website to send a file from the client to the server, i know php is serverside... but ftp is that ability to do so...otherwise what is that field $client_path for ??
here's the link to the php site on uploads http://www.php.net/manual/en/features.file-upload.php
Yes i noticed from another post.... i am looking into... $client_path is a variable that you must specify on ftp_put();
Nevertheless i found what i was looking for this post
Thanks
Nevertheless i found what i was looking for this post
Code: Select all
<form enctype="multipart/form-data" action="_URL_" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>Well i have not been geeting much help on this topic, and i already have a good book thank you very much.
Let's clear something out, first not everyone will be able to do this but only 2 people with a login and password, second, as far as i got with my brain storming/searching the files areuploaded into the /tmp directory first and it's up to your php script to move them
third, when you are uploading you certainly check for mime types, and while you are at it if you want to make it ultra secure you can encript your filetransfers...
But then again why then should the 2 people that i am building the site for who just want to upload .doc files need such things?
Instead why, help me figuring out the basics of file uploading. After which i will deal with the security.
Let's clear something out, first not everyone will be able to do this but only 2 people with a login and password, second, as far as i got with my brain storming/searching the files areuploaded into the /tmp directory first and it's up to your php script to move them
third, when you are uploading you certainly check for mime types, and while you are at it if you want to make it ultra secure you can encript your filetransfers...
But then again why then should the 2 people that i am building the site for who just want to upload .doc files need such things?
Instead why, help me figuring out the basics of file uploading. After which i will deal with the security.