I am trying to ftp with php code. The code works, but the file is truncated for some
reason.
The only thing that I could think of would be directive in the php.ini file, but these
seem to be ok:
max_execution_time = 60 > the files / script process quickly, so this doesn't seem to
be the probl
I have an array $keywords, how do I test to see if it is empty? $keywords == '' seems
to throw out an error.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was not able to get php's ftp functions working for me, they were uploading zero
byte files, so I am now attempting to use fsockopen to accomplish the task.
I found this script: http://www.phpbuilder.com/mail/php-general/2001102/1333.php
It uses the function: socket_set_blocking(), and php.net
I tried to ftp with php's ftp functions, but was only able to upload zero byte files.
So, I then tried to upload with fsockopen, but again, my script uploads a zero byte
file. It bombs out at:
FTP transaction:
220 marlborough FTP server (CH/1.9) ready.
331 Password required for [EMAIL PROTECTE
The following is a script from the php.net site for supposedly uploading files via
ftp. My question is, why do we have to build handles, what is the purpose of creating
this array?
//Build handles for uploaded image
$imageUpFile = $_FILES['photo_file']['tmp_name'];
$imageType = $_FILES['photo_f
5 matches
Mail list logo