Bug #10835 Updated: File Upload

From: Date: Tue, 02 Jul 2002 18:27:07 +0000
Subject: Bug #10835 Updated: File Upload
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-12846@lists.php.net to get a copy of this message
ID: 10835 Updated by: jan@php.net Reported By: fergiboy@home.com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: ANY PHP Version: ANY New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-04-03 02:50:49] yohgaki@php.net There are so meny dir listing styles... (Imagine how many locales we have...) I think it will not be fixed anytime soon. We need to document this limitation for now. ------------------------------------------------------------------------ [2002-02-15 14:32:15] fergiboy@home.com Thanks for your help. ------------------------------------------------------------------------ [2002-02-15 12:04:44] ksp@ideafix.org I've found the problem. The ftp from IIS is configured to handle the "Directory Style" as "MSDOS"...... you only have to change it to "UNIX" for php's ftp functions work properly and handle spaces in paths and names. Greetings ------------------------------------------------------------------------ [2002-02-14 03:55:48] ksp@ideafix.org I have got a similar error with the ftp_chdir function. I can't change to a directory with spaces in it , nor making the strings replacement shown here... I'm using: Php server: W2k Server(no SP), Apache 1.3 , Php 4.0.5 ftp server: W2k Professional SP2, ftp of IIS, access anonymous. Thanks in advance. ------------------------------------------------------------------------ [2001-05-12 22:24:49] fergiboy@home.com I added an echo $a and an echo $b. I also some debug code to see if it was connection to the ftp server. The output is: C:\Te st.doc Te st.doc Connected Ftp upload has failed! So $a=C:\Te st.doc $b=Te st.doc So it should upload the file as fallows: $upload = ftp_put($conn_id, "C:\Te st.doc", "Te st.doc", FTP_BINARY); I added the code: $b = str_replace (" ", "\ ", $b); to no avail :( ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/10835 -- Edit this bug report at http://bugs.php.net/?id=10835&edit=1

« previous php.bugs (#12846) next »