RE: Not a regular file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:haliphax@xxxxxxxxx] 
Sent: Thursday, June 04, 2009 10:23 AM
To: php-general@xxxxxxxxxxxxx
Subject: Re:  Not a regular file?

On Thu, Jun 4, 2009 at 9:07 AM, Miller, Terion
<tmiller@xxxxxxxxxxxxxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux