Re: [PHP] Not a regular file? (RESOLVED)

2009-06-04 Thread Miller, Terion
Issue is resolved, all I needed to do was put $ImageName on the remote path too> duhlol $remote_path = "/httpdocs/Announcements/photos/obitsTest/$ImageName"; On 6/4/09 9:35 AM, "kyle.smith" wrote: echo "I'm going to upload $FilePath to $remote_path."; -- PHP General Mailing List (htt

Re: [PHP] Not a regular file?

2009-06-04 Thread Jo�o C�ndido de Souza Neto
I´m not sure, nut I think you cant put a file into a ftp server using http, you must use the $_SERVER["DOCUMENT_ROOT"] to get the file you want to put. -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br ""Miller, Terion"" esc

RE: [PHP] Not a regular file?

2009-06-04 Thread kyle.smith
Terion [mailto:tmil...@springfi.gannett.com] Sent: Thursday, June 04, 2009 10:32 AM To: haliphax; PHP-General List Subject: Re: [PHP] Not a regular file? Here is my code for the ftp_put $conn_id = ftp_connect($ftp_server);$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

Re: [PHP] Not a regular file?

2009-06-04 Thread Miller, Terion
Here is my code for the ftp_put $conn_id = ftp_connect($ftp_server);$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);$FilePath = "http://localhost:/HarrisAutomate/output/WebImagesHiRes/$ImageName";; $remote_path = "/httpdocs/Announcements/photos/o

RE: [PHP] Not a regular file?

2009-06-04 Thread kyle.smith
Wrap some debug code in the loop: echo "I want to upload $file. Is it a file?" . is_file($file) . ""; 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:

Re: [PHP] Not a regular file?

2009-06-04 Thread haliphax
On Thu, Jun 4, 2009 at 9:07 AM, Miller, Terion 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 wh

[PHP] Not a regular file?

2009-06-04 Thread Miller, Terion
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 co