List Info

Thread: note 78330 added to function.ftp-put




note 78330 added to function.ftp-put
user name
2007-10-07 04:12:14
Checklist for a file upload using ftp_put()

1. Check the form enctype. I used multipart/form-data to
upload word, excel or jpegs using ftp_put()

2. Check the permission of your folder. Unless you have
PHPSuExec installed, you change permission of the
destination folder to 777

3. See the path of your destination, as that's what creates
the problem most of the time. Incase we use ftp_put() with
basename($fileName); ($fileName is any file name of your
choice + the valid extension for the file uploaded) then the
files are uploaded to /home/user/ folder. 

So, in case you want to upload your files to a sub folder
called dynamicDocuments situated at the same level where
your index.php file is, you have to use the path as -

$destination_file =
'public_html/dynamicDocuments/'.basename($fileName); 

HTH someone. 
----
Server IP: 69.147.83.197
Probable Submitter: 77.195.172.82
----
Manual Page -- htt
p://www.php.net/manual/en/function.ftp-put.php
Edit        -- https://master
.php.net/note/edit/78330
Del: integrated  -- h
ttps://master.php.net/note/delete/78330/integrated
Del: useless     -- http
s://master.php.net/note/delete/78330/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78330/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78330/spam
Del: non-english -- 
https://master.php.net/note/delete/78330/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78330/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78330
Reject      -- https://mast
er.php.net/note/reject/78330
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


note 78330 deleted from function.ftp-put by nlopess
user name
2007-10-07 05:16:44
Note Submitter: www.kigoobe.com 

----

Checklist for a file upload using ftp_put()

1. Check the form enctype. I used multipart/form-data to
upload word, excel or jpegs using ftp_put()

2. Check the permission of your folder. Unless you have
PHPSuExec installed, you change permission of the
destination folder to 777

3. See the path of your destination, as that's what creates
the problem most of the time. Incase we use ftp_put() with
basename($fileName); ($fileName is any file name of your
choice + the valid extension for the file uploaded) then the
files are uploaded to /home/user/ folder. 

So, in case you want to upload your files to a sub folder
called dynamicDocuments situated at the same level where
your index.php file is, you have to use the path as -

$destination_file =
'public_html/dynamicDocuments/'.basename($fileName); 

HTH someone. 

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )