This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:ftp_open [2019/06/28 04:16] admin created |
uphp:functions:ftp_open [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 21: | Line 21: | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | ) | ||
</ | </ | ||
Line 35: | Line 47: | ||
< | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
====Return Values==== | ====Return Values==== | ||
Line 40: | Line 58: | ||
< | < | ||
- | ====Example==== | + | ====Example |
<code php> | <code php> | ||
Line 52: | Line 70: | ||
</ | </ | ||
+ | ====Example 2==== | ||
+ | Upload a file to the server but don't wait for the response | ||
+ | <code php> | ||
+ | <? | ||
+ | // set folder path here | ||
+ | $folder_path = "/ | ||
+ | | ||
+ | $res = ftp_open(" | ||
+ | if ($res) { | ||
+ | print(" | ||
+ | $res=ftp_command(" | ||
+ | // upload the file | ||
+ | $res=ftp_upload(" | ||
+ | if ($res==1) { | ||
+ | print(" | ||
+ | } else { | ||
+ | print(" | ||
+ | } | ||
+ | ftp_close(); | ||
+ | } | ||
+ | |||
+ | ?> | ||
+ | </ | ||
====See Also==== | ====See Also==== | ||