|
Posted by Lennart Bjφrk on 01/27/06 11:09
Sylvain,
>
$source=file:///'srv-fic01/TeJCommun/site_web_admin/liste_vacpli.sql';
What do you think about this ?
<
I think you should start by checking if the file really is there (or
even available to you there). Justin Koivisto gives you that hint in his
message here.
As a general rule I think you schould check the results of your actions.
You mentioned that you got
>
Resource id #2
1
<
What does that '1' mean? Isn't that the result of your
>
$resput=ftp_put($conn_id,"$destination","$source",FTP_BINARY);
<
?
The result of the ftp_put() seems to be ok. But if there is nothing to
put nothing is put, bien que le put lui-mΓͺme marche trΓ¨s bien. You can
test how ftp_put() works in this respect by asking it to send something
you know is not there, and keep a tight eye on the return value.
Lennart BjΓΆrk
[Back to original message]
|