|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
When I try to upload a file with my php/ftp-script, and the filename contains whitespaces the upload fails....
Any sugguestions for a solution to that? Freddy... |
|
#2
|
||||
|
||||
|
|
#3
|
|||
|
|||
|
Have you tried putting the name of the file in quotes?
|
|
#4
|
||||
|
||||
|
Ok....but the file with whitespaces is on a remote computer and I can`t access that file and rename it. I`ve tried to rename the string that contains the remote filename to a string with "_" instead of whitespaces. Then I put that string into the ftp_put()-function..........but with no luck....
Any suggestions?` Freddy.... |
|
#5
|
||||
|
||||
|
Is the remote a *nix type?
Try putting a slash '\' before the space, since spaces in unix filename cause bad things. There is actually a rename command in ftp, as long as you have sufficient rights to do that. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > PHP & FTP - whitespaces in filename = ERROR...why? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|