I am not able to transfer file from one server to another using ftp_put() below is the warning its showing and also files are not getting transfered.
If i put absolute path below error is coming
>Warning: ftp_fput() [function.ftp-fput]: Can't open that file: No such file or directory in ...
Naga14
0
Newbie Poster
Recommended Answers
Jump to PostIt may be a wrong path to the local file, make sure you use absolute paths:
$file = $_SERVER['DOCUMENT_ROOT'] . '/path/to/file.ext';
Jump to PostAre you using
ftp_put
orftp_fput
, you mention the first, but the warning shows the second. Their functionality is different.
All 8 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Naga14
0
Newbie Poster
pzuurveen
90
Posting Whiz in Training
Naga14
0
Newbie Poster
masterjiraya
-3
Junior Poster
masterjiraya
-3
Junior Poster
pzuurveen
90
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.