Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php ftp upload problem
December 12, 2007, 4:56 pm
rate this thread
upload files, but since my host has disabled the natural php functions
for this I have been forced to turn to ftp.
The problem I am having is that when I try to upload files semi-large
files (not really, just in comparison to everything else), such as a
2.5 megabyte video file, only about 240k will go through.
I don't think its my internet connection because 1 I don't lose my
internet connection, 2 because everytime I upload the same video, I
only get 240k to go through everytime, and 3 because when I try a
smaller image with a file size of 450k, only about 70k goes through.
240k for video, 70k for large image??
Any help or explanation for this issue would be appreciated?
Re: php ftp upload problem
Thanks for the help, I've solved the uploading problem, turns out I
was using ASCII mode instead of BINARY, but now I'm having a new
problem with deleting files via FTP.
When I try to see if the file exists using file_exists I get no errors
but when I run the script I get the following error:
Warning: ftp_delete(): '/test.doc': no such file or directory
I don't get it, in the same script file_exists tells me its there but
ftp says its not??? I'm I interpreting this wrong or what?