[PHP] File Handles?

2002-12-13 Thread poliva
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

[PHP] Sorry if repost - more ftp problems

2002-12-12 Thread poliva
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

[PHP] socket_set_blocking()

2002-12-12 Thread poliva
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

[PHP] testing for empty array

2002-11-26 Thread poliva
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

[PHP] FTP'ing with function

2002-11-25 Thread poliva
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