RE: [PHP] Not a regular file?
| From: | kyle.smith | Date: | Thu, 04 Jun 2009 14:25:10 +0000 |
| Subject: | RE: [PHP] Not a regular file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293604@lists.php.net to get a copy of this message | ||
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@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
<tmiller@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