Wrap some debug code in the loop:

echo "I want to upload $file.  Is it a file?" . is_file($file) .
"<br/>";

See what that says.

-----Original Message-----
From: haliphax [mailto:halip...@gmail.com] 
Sent: Thursday, June 04, 2009 10:23 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Not a regular file?

On Thu, Jun 4, 2009 at 9:07 AM, Miller, Terion
<tmil...@springfi.gannett.com> wrote:
> I've never encountered this error:
>
> Warning: ftp_put() [function.ftp-put]: 
> /httpdocs/Announcements/photos/obitsTest/: Not a regular file in 
> /Applications/MAMP/htdocs/HarrisAutomate/ObitsTester.php on line 149 
> There was a problem while uploading 659428.jpg 658626
>
> Can't find much info on how to correct it, anyone seen this?

http://www.lmgtfy.com/?q=php+%22not+a+regular+file%22

Apparently, it's not actually a file in the first place. Just a
guess--but most all incidents of ftp_put throwing this error that I've
found in web searches point to someone using it on a directory/etc.


--
// Todd

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to