|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-26 18:40 UTC] vlad@php.net
[2002-04-04 11:51 UTC] blaloggia at cwplus dot com
[2002-04-04 18:35 UTC] fred010101 at hotmail dot com
[2002-04-04 18:55 UTC] kchapdelaine at cox dot net
[2002-04-15 22:22 UTC] vlad@php.net
[2002-06-01 16:32 UTC] christoffer dot dahl at chello dot se
[2002-06-01 16:35 UTC] christoffer dot dahl at chello dot se
[2002-07-08 22:39 UTC] Blackironj at aol dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Okay, I've scoured the bug reports and the message lists and I'm not convinced that it's even possible to upload from a local file to an ftp server using ftp_put. No one seems to have a good answer to the multiple listings of people having this problem. I don't believe my problem is a security problem. My problem is that PHP wants to use the directory that my PHP program is in as the default directory for uploading. ftp_put won't recognize my C: drive as a local drive. Here is the gist of the code that doesn't seem to be working: $host = "ftp.cwplus.com"; $user = "username"; $password = "password"; $remotefile = "/www/cwplus/wendy/images/$filename"; $conn = ftp_connect("$host"); ftp_login($conn, $user, $password); ftp_put($conn, $remotefile, "C:/test.txt", FTP_BINARY)) I've done all kinds of slash manipulation for the local file and none seem to help. Thanks, Bob