PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > RES: [PHP-INSTALL] ftp_put cannot upload a file.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
RES: [PHP-INSTALL] ftp_put cannot upload a file.

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 20h26   #1
Thiago Pojda
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RES: [PHP-INSTALL] ftp_put cannot upload a file.

Tina,

Is there any error message in php logs?

Can you reproduce manually what you're trying to do with PHP? I mean,
connect and put that file.

Enable E_ALL in PHP and try again.

I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL
issues.


Regards,
Atenciosamente,


<http://www.softpartech.com.br/> www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
thiago.pojda@softpartech.com.br
Excelência em Softwares Financeiros


_____

De: Tina [mailto:tina01w@yahoo.co.uk]
Enviada em: quinta-feira, 10 de abril de 2008 14:33
Para: php-install@lists.php.net
Assunto: [PHP-INSTALL] ftp_put cannot upload a file.


Dear Sir/Madam

I have the following code section and it returns else statement. A firefox
web browser 1.0.1 is used on a suse linux 2.6.11.4-20a-smp. php 5 and
apache 2.

---------------------------------------------------
$uploadfile = ftp_put($ftpconnect, $destinationfile, $sourcefile,
FTP_BINARY);
if ( $uploadfile ) {
echo "Uploaded file = $sourcefile to server name = $servername as file =
$destinationfile.";
} else {
echo "Upload is failed to upload file = $sourcefile to server name =
$servername.";
}
---------------------------------------------------

Would you let me know what causes this problem?


Ms (Tina) Thieu Van Hung



_____

Yahoo! for Good s you make
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/
evt=51947/*http://uk.promotions.yahoo.com/forgood/> a difference


  Réponse avec citation
Vieux 10/04/2008, 20h49   #2
Shawn McKenzie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RES: [PHP-INSTALL] ftp_put cannot upload a file.

Thiago Pojda wrote:
> Tina,
>
> Is there any error message in php logs?
>
> Can you reproduce manually what you're trying to do with PHP? I mean,
> connect and put that file.
>
> Enable E_ALL in PHP and try again.
>
> I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL
> issues.
>
>
> Regards,
> Atenciosamente,
>
>
> <http://www.softpartech.com.br/> www.softpartech.com.br
>
>
> Thiago Henrique Pojda
> Desenvolvimento Web
> +55 41 3033-7676
> thiago.pojda@softpartech.com.br
> Excelência em Softwares Financeiros
>
>
> _____
>
> De: Tina [mailto:tina01w@yahoo.co.uk]
> Enviada em: quinta-feira, 10 de abril de 2008 14:33
> Para: php-install@lists.php.net
> Assunto: [PHP-INSTALL] ftp_put cannot upload a file.
>
>
> Dear Sir/Madam
>
> I have the following code section and it returns else statement. A firefox
> web browser 1.0.1 is used on a suse linux 2.6.11.4-20a-smp. php 5 and
> apache 2.
>
> ---------------------------------------------------
> $uploadfile = ftp_put($ftpconnect, $destinationfile, $sourcefile,
> FTP_BINARY);
> if ( $uploadfile ) {
> echo "Uploaded file = $sourcefile to server name = $servername as file =
> $destinationfile.";
> } else {
> echo "Upload is failed to upload file = $sourcefile to server name =
> $servername.";
> }
> ---------------------------------------------------
>
> Would you let me know what causes this problem?
>
>
> Ms (Tina) Thieu Van Hung
>
>
>
> _____
>
> Yahoo! for Good s you make
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/
> evt=51947/*http://uk.promotions.yahoo.com/forgood/> a difference
>
>

There could be any number of things wrong, so follow the advice to turn
on error reporting. Most likely:

1. Your connection is not valid
2. You didn't login ftp_login() or it failed
3. The local file can't be found
4. The remote dir can't be found or the connected user doesn't have
permission to write to it
5. If going through a firewall or for other reasons, you most likely
need ftp_pasv()

-Shawn
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h59.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11561 seconds with 10 queries