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
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
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);
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
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:
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
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
7 matches
Mail list logo